!function(){"use strict";var t,e,r,n,o,i,a,c,u,s={},l={};function f(t){var e=l[t];if(void 0!==e)return e.exports;var r=l[t]={exports:{}};return s[t](r,r.exports,f),r.exports}f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.rv=function(){return"1.3.15"},f.ruid="bundler=rspack@1.3.15",(t=a||(a={})).WINDOWS_PHONE="Windows Phone",t.ANDROID="android",t.IOS="ios",t.PC="pc",(e=c||(c={})).MUSICAL_LY="musical_ly",e.MUSICALLY_GO="musically_go",e.TRILL="trill",e.ULTRALITE="ultralite",e.LEMON8="lemon8",e.TTLINK="ttlink",(i={})[c.LEMON8]={},i[c.TTLINK]={},i[c.MUSICAL_LY]=((n={})[a.IOS]="33.4.0",n[a.ANDROID]="23.1.0",n),i[c.TRILL]=((o={})[a.IOS]="33.4.0",o[a.ANDROID]="23.1.0",o);var p=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==f.g?f.g:Function("return this")()},h=function(){return p().TiktokAnalyticsObject||"ttq"},y=function(){return p()[h()]},d=function(t){try{var e=y()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}};function _(){_=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object.create((e&&e.prototype instanceof p?e:p).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new E(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return N()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function h(){}function y(){}var d={};u(d,i,function(){return this});var v=Object.getPrototypeOf,g=v&&v(v(T([])));g&&g!==e&&r.call(g,i)&&(d=g);var m=y.prototype=p.prototype=Object.create(d);function b(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function w(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function v(t,e,r){return(v=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}()?function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&g(o,r.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function g(t,e){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var m={error:[]};(r=u||(u={})).LOAD_START="load_start",r.LOAD_END="load_end",r.BEFORE_INIT="before_init",r.INIT_START="init_start",r.INIT_END="init_end",r.JSB_INIT_START="jsb_init_start",r.JSB_INIT_END="jsb_init_end",r.BEFORE_AD_INFO_INIT_START="before_ad_info_init_start",r.AD_INFO_INIT_START="ad_info_init_start",r.AD_INFO_INIT_END="ad_info_init_end",r.IDENTIFY_INIT_START="identify_init_start",r.IDENTIFY_INIT_END="identify_init_end",r.PLUGIN_INIT_START="_init_start",r.PLUGIN_INIT_END="_init_end",r.PIXEL_SEND="pixel_send",r.PIXEL_SEND_PCM="pixel_send_PCM",r.JSB_SEND="jsb_send",r.HTTP_SEND="http_send",r.HANDLE_CACHE="handle_cache",r.INIT_ERROR="init_error",r.PIXEL_EMPTY="pixel_empty",r.JSB_ERROR="jsb_error",r.API_ERROR="api_error",r.PLUGIN_ERROR="plugin_error",r.CUSTOM_INFO="custom_info",r.CUSTOM_ERROR="custom_error",r.CUSTOM_TIMER="custom_timer";try{(function(){if(/function bind\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Function.prototype.bind.toString()))return!0;function t(){}return new(t.bind.apply(t,[void 0,1])) instanceof t})()&&!Function.prototype._ttq_bind?Object.defineProperty(Function.prototype,"_ttq_bind",{value:Function.prototype.bind,enumerable:!1,writable:!1,configurable:!1}):Function.prototype._ttq_bind||Object.defineProperty(Function.prototype,"_ttq_bind",{value:function(t){if("function"!=typeof this)throw TypeError("What is being called by bind is not a function.");var e=t||window,r=Array.prototype.slice.call(arguments).slice(1),n=Symbol("key");return e[n]=this,function t(){return this instanceof t?v(e[n],r.concat(Array.prototype.slice.call(arguments))):e[n].apply(e,r.concat(Array.prototype.slice.call(arguments)))}},enumerable:!1,writable:!1,configurable:!1}),Object._ttq_keys||(Object._ttq_keys=function(t){try{if(Array.isArray(t))return Object.keys(t).filter(function(t){return -1===["each","eachSlice","all","any","collect","detect","findAll","grep","include","inGroupsOf","inject","invoke","max","min","partition","pluck","reject","sortBy","toArray","zip","size","inspect","select","member","_reverse","_each","clear","first","last","compact","flatten","without","uniq","intersect","clone","toJSON","remove","swap","putAll"].indexOf(t)});return Object.keys(t)}catch(e){return Object.keys(t)}});var b=h();function w(t){return null===t?"NULL":void 0===t?"UNDEFINED":"[object Object]"===Object.prototype.toString.call(t)||"[object Array]"===Object.prototype.toString.call(t)?JSON.stringify(t):t.toString()}/function Map\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Map.toString())?window[b]._ttq_map=Map:window[b]._ttq_map||(window[b]._ttq_map=function(){this.items={},this.size=0},window[b]._ttq_map.prototype.set=function(t,e){return!this.has(t)&&(this.items[w(t)]=e,this.size++),this},window[b]._ttq_map.prototype.get=function(t){return this.items[w(t)]},window[b]._ttq_map.prototype.has=function(t){return void 0!==this.items[w(t)]},window[b]._ttq_map.prototype.delete=function(t){return this.has(t)&&(delete this.items[w(t)],this.size--),this},window[b]._ttq_map.prototype.clear=function(){this.items={},this.size=0},window[b]._ttq_map.prototype.keys=function(){var t=_().mark(n),e=[];for(var r in this.items)this.has(r)&&e.push(r);function n(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e,"t0",1);case 1:case"end":return t.stop()}},t)}return n()},window[b]._ttq_map.prototype.values=function(){var t=_().mark(n),e=[];for(var r in this.items)this.has(r)&&e.push(this.items[r]);function n(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e,"t0",1);case 1:case"end":return t.stop()}},t)}return n()}),function(){if(/function create\(\) \{[\s\S]*\[native code\][\s\S]*\}/.test(Map.toString())){Object._ttq_create=Object.create;return}Object._ttq_create=function(){function t(){}var e=Object.prototype.hasOwnProperty;return function(r,n){if("object"!=typeof r&&"function"!=typeof r)throw TypeError("Object prototype may only be an Object or null");t.prototype=r;var o=new t;return t.prototype=null,null!=n&&Object.keys(n).forEach(function(t){var r=n[t];if("object"==typeof r&&null!==r)e.call(r,"value")?o[t]=r.value:("function"==typeof r.get||"function"==typeof r.set)&&Object.defineProperty(o,t,r);else throw TypeError("Property description must be an object: "+r)}),o}}()}()}catch(t){!function(t,e,r,n){void 0===r&&(r={}),void 0===n&&(n=!1);try{var o=y(),i=null==o.getPlugin?void 0:o.getPlugin("Monitor");i&&i.error&&"function"==typeof i.error?i.error.call(i,t,e,r,n):d("Monitor")&&m.error.push({event:t,err:e,detail:r,withoutJSB:n})}catch(t){}}(u.INIT_ERROR,t)}}();!function(){var t={515:function(t){function e(t){if(t){var r=t;for(var n in e.prototype)r[n]=e.prototype[n];return r}}t.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o0}});return}var t=window.document,e=[];n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!(t&&1==t.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},n.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,r){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw Error("threshold must be a number between 0 and 1 inclusively");return t!==r[e-1]})},n.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},n.prototype._monitorIntersections=function(){!this._monitoringIntersections&&(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,i(window,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():c();this._observationTargets.forEach(function(n){var o=n.element,i=a(o),c=this._rootContainsTarget(o),u=n.entry,s=t&&c&&this._computeTargetAndRootIntersection(o,e),l=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:i,rootBounds:e,intersectionRect:s});u?t&&c?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(e,r){if("none"!=window.getComputedStyle(e).display){for(var n=a(e),o=s(e),i=!1;!i;){var c=null,u=1==o.nodeType?window.getComputedStyle(o):{};if("none"==u.display)return;if(o==this.root||o==t?(i=!0,c=r):o!=t.body&&o!=t.documentElement&&"visible"!=u.overflow&&(c=a(o)),c&&!(n=function(t,e){var r=Math.max(t.top,e.top),n=Math.min(t.bottom,e.bottom),o=Math.max(t.left,e.left),i=Math.min(t.right,e.right),a=i-o,c=n-r;return a>=0&&c>=0&&{top:r,bottom:n,left:o,right:i,width:a,height:c}}(c,n)))break;o=s(o)}return n}},n.prototype._getRootRect=function(){var e;if(this.root)e=a(this.root);else{var r=t.documentElement,n=t.body;e={top:0,left:0,right:r.clientWidth||n.clientWidth,width:r.clientWidth||n.clientWidth,bottom:r.clientHeight||n.clientHeight,height:r.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(e)},n.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,r){return"px"==e.unit?e.value:e.value*(r%2?t.width:t.height)/100}),r={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},n.prototype._hasCrossedThreshold=function(t,e){var r=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(r!==n)for(var o=0;oe.indexOf(this)&&e.push(this)},n.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=n,window.IntersectionObserverEntry=r}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||c(),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,r=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;r?this.intersectionRatio=Number((o/r).toFixed(4)):this.intersectionRatio=+!!this.isIntersecting}function n(t,e){var r,n,o,i=e||{};if("function"!=typeof t)throw Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw Error("root must be an Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout(function(){r(),o=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function o(t,e,r,n){"function"==typeof t.addEventListener?t.addEventListener(e,r,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,r)}function i(t,e,r,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,r,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,r)}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):c()}function c(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(t,e){for(var r=e;r;){if(r==t)return!0;r=s(r)}return!1}function s(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}()},278:function(t,e,r){t=r.nmd(t);var n,o="__lodash_hash_undefined__",i="[object Arguments]",a="[object Boolean]",c="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",f="[object Number]",h="[object Object]",p="[object Promise]",d="[object RegExp]",v="[object Set]",_="[object String]",m="[object Symbol]",g="[object WeakMap]",y="[object ArrayBuffer]",E="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",I="[object Int16Array]",T="[object Int32Array]",S="[object Uint8Array]",R="[object Uint8ClampedArray]",N="[object Uint16Array]",A="[object Uint32Array]",L=/\w*$/,P=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,C={};C[i]=C["[object Array]"]=C[y]=C[E]=C[a]=C[c]=C[b]=C[w]=C[O]=C[I]=C[T]=C[l]=C[f]=C[h]=C[d]=C[v]=C[_]=C[m]=C[S]=C[R]=C[N]=C[A]=!0,C["[object Error]"]=C[u]=C[g]=!1;var k="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,D="object"==typeof self&&self&&self.Object===Object&&self,M=k||D||Function("return this")(),j=e&&!e.nodeType&&e,U=j&&t&&!t.nodeType&&t,F=U&&U.exports===j;function G(t,e){return t.set(e[0],e[1]),t}function H(t,e){return t.add(e),t}function V(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o-1},tS.prototype.set=function(t,e){var r=this.__data__,n=tL(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},tR.prototype.clear=function(){this.__data__={hash:new tT,map:new(tp||tS),string:new tT}},tR.prototype.delete=function(t){return tC(this,t).delete(t)},tR.prototype.get=function(t){return tC(this,t).get(t)},tR.prototype.has=function(t){return tC(this,t).has(t)},tR.prototype.set=function(t,e){return tC(this,t).set(t,e),this},tN.prototype.clear=function(){this.__data__=new tS},tN.prototype.delete=function(t){return this.__data__.delete(t)},tN.prototype.get=function(t){return this.__data__.get(t)},tN.prototype.has=function(t){return this.__data__.has(t)},tN.prototype.set=function(t,e){var r=this.__data__;if(r instanceof tS){var n=r.__data__;if(!tp||n.length<199)return n.push([t,e]),this;r=this.__data__=new tR(n)}return r.set(t,e),this};var tD=ts?K(ts,Object):function(){return[]},tM=function(t){return tt.call(t)};function tj(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||J)}function tU(t){if(null!=t){try{return Q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function tF(t,e){return t===e||t!=t&&e!=e}(th&&tM(new th(new ArrayBuffer(1)))!=E||tp&&tM(new tp)!=l||td&&tM(td.resolve())!=p||tv&&tM(new tv)!=v||t_&&tM(new t_)!=g)&&(tM=function(t){var e=tt.call(t),r=e==h?t.constructor:void 0,n=r?tU(r):void 0;if(n)switch(n){case tg:return E;case ty:return l;case tE:return p;case tb:return v;case tw:return g}return e});var tG=Array.isArray;function tH(t){var e;return null!=t&&"number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=0x1fffffffffffff&&!tq(t)}var tV=tl||function(){return!1};function tq(t){var e=tB(t)?tt.call(t):"";return e==u||e==s}function tB(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function tK(t){return tH(t)?function(t,e){var r,n,o,a,c,u=tG(t)||(o=n=r=t)&&"object"==typeof o&&tH(n)&&$.call(r,"callee")&&(!tc.call(r,"callee")||tt.call(r)==i)?function(t,e){for(var r=-1,n=Array(t);++r-1&&a%1==0&&aa)return!1}return!0},D=function(t){var e=A();return void 0!==e&&t.has(e)},M=function(){return D(new Set([f.vu.MUSICAL_LY,f.vu.TRILL,f.vu.ULTRALITE]))},j=function(){var t=(0,c.E9)();try{return!!(t.Shopify&&t.Shopify.shop&&t.Shopify.shop.indexOf(".myshopify.com")>0||t.name&&t.name.startsWith("web-pixel-sandbox-CUSTOM-shopify"))}catch(t){}return!1}},332:function(t,e,r){"use strict";r.d(e,{E9:function(){return s},FH:function(){return _},Gp:function(){return l},Ie:function(){return f},My:function(){return v},Wf:function(){return E},c6:function(){return b},cH:function(){return p},er:function(){return w},gM:function(){return u},ij:function(){return d},kW:function(){return m},n2:function(){return h},ri:function(){return g},so:function(){return y}});var n=r(229),o=r(255),i=r(825),a=r(783),c=null,u=function(t){c=t},s=function(){return"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==r.g?r.g:Function("return this")()},l=function(){return s()[n.iG]||n.bk},f=function(){var t=s();return c||t[l()]},h=function(){var t=s();return void 0!==t.DedicatedWorkerGlobalScope?t instanceof t.DedicatedWorkerGlobalScope:"DedicatedWorkerGlobalScope"===t.constructor.name},p=function(){return!!f()._is_onsite},d=function(){var t=s();return("object"==typeof navigator&&navigator.userAgent?navigator.userAgent:"")||t._userAgent},v=function(t){try{var e=f();return e&&e._self_host_config&&e._self_host_config[t]||""}catch(t){return""}},_=function(t,e){void 0===e&&(e=[]);try{return e.includes(t)}catch(t){return!1}},m=function(t){var e=f(),r=e._i||{},n=t&&r[t];return t&&n&&n._partner?n._partner:e._partner?e._partner:""},g=function(t){var e=f(),r=e._i||{};return Object.keys(r).filter(function(e){return r[e]._partner===t}).length>0||e._partner===t},y=function(){return((f()||[])._cc||"").toUpperCase()},E=function(t){try{var e=f()._plugins||{};if(null!=e[t])return!!e[t];return!0}catch(t){return!0}},b=function(){try{var t=f()._ppf;return null==t.printAndClear?void 0:t.printAndClear()}catch(t){}},w=function(){try{var t,e=f(),r=null==(t=e._container)?void 0:t.get(o.D.INTER_ID_SERVICE);if(r)return r.getInterId()||null}catch(t){(0,a.vU)(i.O.CUSTOM_ERROR,t,{custom_name:"getCurrentInterId"})}return null}},618:function(t,e,r){"use strict";r.d(e,{Kn:function(){return u},Oo:function(){return c},o5:function(){return s}});var n=r(332),o=r(783),i=r(255),a=r(825),c=function(t,e,r,c){try{var u,s=(0,n.Ie)(),l=null==(u=s._container)?void 0:u.get(i.D.EVENT_EMITTER);if(!l)throw Error("EventEmitter is not found - addEventListener");c&&l.setObserverConfig(c);var f=r.throttle,h=r.interval;l.on(t,e,{throttle:f,interval:h})}catch(e){(0,o.vU)(a.O.CUSTOM_ERROR,e,{custom_name:"addEventListener",custom_enum:t})}},u=function(t){try{var e,r=(0,n.Ie)(),c=null==(e=r._container)?void 0:e.get(i.D.EVENT_EMITTER);if(!c)throw Error("EventEmitter is not found - emitEvent");for(var u=arguments.length,s=Array(u>1?u-1:0),l=1;lObject.keys(t._legacy||[]).length||t.reporters.length>Object.keys(t._legacy||[]).length}catch(t){return!1}}},688:function(t,e,r){"use strict";var n,o;function i(){var t=Date.now();return("number"!=typeof t||isNaN(t)||!isFinite(t)||t<0)&&(t=new Date().getTime()),t}r.d(e,{u3:function(){return i}}),(o=n||(n={})).AUTO_CONFIG_CONTENT="auto_config_content",o.AUTO_CONFIG_FORM="auto_config_form",o.AUTO_CONFIG_CLICK="auto_config_click",o.EB_RULE_COMPUTE_TOKENIZE_TEXT="eb_rule_compute_tokenize_text",o.EB_RULE_COMPUTE_IMG_SRC="eb_rule_compute_img_src",o.EB_RULE_COMPUTE_ELEMENT_XPATH="eb_rule_compute_element_xpath",o.EB_PARAMETER_V2="eb_parameter_v2",o.EB_PARAMETER_V1="eb_parameter_v1"},319:function(t,e,r){"use strict";function n(t){var e=Error(t);return e.source="ulid",e}r.d(e,{_v:function(){return G},QO:function(){return M},TX:function(){return x},hi:function(){return P},te:function(){return D},ZV:function(){return y},Ds:function(){return F},Oi:function(){return K},eh:function(){return W},aN:function(){return tn},iE:function(){return w},LT:function(){return N},Pm:function(){return T},Zq:function(){return O},JQ:function(){return E},bJ:function(){return $},cm:function(){return U},d$:function(){return A},X1:function(){return C},vO:function(){return k},zh:function(){return V},oh:function(){return Y},$9:function(){return te},mQ:function(){return j},Xu:function(){return I},$j:function(){return R},IH:function(){return S},iK:function(){return B},WZ:function(){return b},xF:function(){return J},b2:function(){return tt},eD:function(){return L},P6:function(){return q},hj:function(){return tr}});var o,i="0123456789ABCDEFGHJKMNPQRSTVWXYZ",a=i.length,c=(o||(o=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments[1];e||(e="undefined"!=typeof window?window:null);var o=e&&(e.crypto||e.msCrypto);if(o)return function(){var t=new Uint8Array(1);return o.getRandomValues(t),t[0]/255};try{var i=r(616);return function(){return i.randomBytes(1).readUInt8()/255}}catch(t){}if(t)return function(){return Math.random()};throw n("secure crypto unusable, insecure Math.random not allowed")}()),function(t){return isNaN(t)&&(t=Date.now()),function(t,e){if(isNaN(t))throw Error(t+" must be a number");if(t>0xffffffffffff)throw n("cannot encode time greater than 281474976710655");if(t<0)throw n("time must be positive");if(!1===Number.isInteger(t))throw n("time must be an integer");for(var r=void 0,o="";e>0;e--)r=t%a,o=i.charAt(r)+o,t=(t-r)/a;return o}(t,10)+function(t,e){for(var r="";t>0;t--)r=function(t){var e=Math.floor(t()*a);return e===a&&(e=a-1),i.charAt(e)}(e)+r;return r}(16,o)}),u=r(729),s=r(229),l=r(118),f=r(825),h=r(188),p=r(790),d=r(688),v=r(783);function _(){_=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new I(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return S()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var m=Object.getPrototypeOf,g=m&&m(m(T([])));g&&g!==e&&r.call(g,i)&&(v=g);var y=d.prototype=h.prototype=Object._ttq_create(v);function E(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function b(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function m(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var g=function(t){return t},y=function(t){g=t},E=function(t){return g(t)},b=function(t){return!!t},w=function(t){return void 0!==t.metric_name},O=function(t){return"CompletePayment"===t||"Purchase"===t},I=function(t){return w(t)?s.aj:s.Kc},T=function(t){var e;return Object.keys((null==t||null==(e=t.context)?void 0:e.user)||{}).some(function(t){return -1!==l.Ae.indexOf(t)})};function S(t,e){var r,n=t;return function(){if(n){for(var o=arguments.length,i=Array(o),a=0;a62?t+="-":t+="_",t},"")},N=function(t){return t?""+t+s.n2+R(20):(0,h.fV)("sessionId")},A=function(){for(var t=c((0,d.u3)());27!==t.length;)t.length>27?t=t.slice(0,27):t+="_";return t},L=function(t){return t?t.split(s.n2)[0]:""},P=function(t,e){return((0,p.r8)()?"/static/config.js":s.Ns)+"?sdkid="+t+"&hostname="+e},x=function(){return(0,p.r8)()?"/static/enable_cookie.js":s.OW},C=function(){return(0,p.r8)()?"/static/disable_cookie.js":s.QN},k=function(){return(0,p.r8)()?"/static/identify.js":s.lV},D=function(t,e){if(0===Object.keys(t).length)return{};var r={identity_params:{}},n={email:["email_is_hashed","sha256_email"],phone_number:["phone_is_hashed","sha256_phone"],zip_code:["zip_code"]};return Object.entries(e).forEach(function(e){var o=e[0];e[1]&&n[o]&&n[o].forEach(function(e){if(r.identity_params[e]=[u.hZ.EMPTY_VALUE],t[e]){var n=t[e]||[u.hZ.EMPTY_VALUE];r.identity_params&&(r.identity_params[e]=[].concat(n))}})}),r},M=function(t,e){var r={identity_params:{}};return 0===Object.keys(t).length?{}:(Object.entries(e).forEach(function(e){var n=e[0];if(e[1])if(t[n]&&t[n].length){var o=t[n]||[u.hZ.EMPTY_VALUE];r.identity_params[n]=[].concat(o)}else r.identity_params[n]=[u.hZ.EMPTY_VALUE]}),r)};function j(t,e){var r=Object.assign({},t);return e.forEach(function(t){null!==r[t]&&void 0!==r[t]&&delete r[t]}),r}var U=function(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){e[n]&&(r[n]=t[n])}),r};function F(t,e,r){var n,o=r?t.bind(r):t;return function(){for(var t=arguments.length,r=Array(t),i=0;i0&&(n[o]=i)}else n[o]=e[o];for(var a in r)r.hasOwnProperty(a)&&!e.hasOwnProperty(a)&&(n[a]=r[a]);return n}(t,e)).length>0}function Y(t,e){var r={};return t&&((0,h.HD)(t)||(0,h.hj)(t)?r.external_id=t.toString():(0,h.Kn)(t)&&(r=t)),e&&(0,h.Kn)(e)&&Object.assign(r,e),r}var X=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e,r={taskName:window.ttq._pf_tn,functionName:"getPixelScriptByPixelCode",start:performance.now()}}catch(t){}for(var n=Array.prototype.slice.call(document.getElementsByTagName("script")),o=0;o-1){e=i;break}}try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}return e},J=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"getPixelInstalledPosition",start:performance.now()}}catch(t){}var r="unknown";try{var n=t&&X(t);n&&(z(n)&&(r="isInHead"),Q(n)&&(r="isInBodyTop10"))}catch(t){}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}return r},z=function t(e){var r=e.parentElement;return!!r&&("HEAD"===r.tagName||t(r))},Z=function(t,e){for(var r=[document.body],n=0;n<=t&&r.length;){var o,i=r.pop();if(i===e)return!0;if(!((null==i?void 0:i.tagName.toLowerCase())==="script"&&(null==(o=i.src)?void 0:o.indexOf(s.Mm))>-1)){if(n++,"object"==typeof i&&i.children)for(var a=i.children.length-1;a>=0;a--)r.push(i.children[a])}}return!1},Q=function(t){return Z(10,t)},$=function(t){return function(){for(var e=arguments.length,r=Array(e),n=0;nNumber(r.opacity))},L=function(t){var e=t;if("string"==typeof t)try{e=decodeURI(t)}catch(r){e=t}return e},P=function(t,e){try{var r=new URL(t);return r.searchParams.delete(e),r.toString()}catch(e){return t}},x=/^\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}$/,C=function(t){var e=t.trim();return!(e.length<6)&&!(e.length>128)&&x.test(e)},k=/[\-!$><-==&_\/\?\.,0-9:; \]\[%~\"\{\}\)\(\+\@\^\`]/g,D=/((([a-z])(?=[A-Z]))|(([A-Z])(?=[A-Z][a-z])))/g,M=/\s+/g,j={TOKENIZE_TEXT:"rule_compute_tokenize_text_error",IMG_SRC:"rule_compute_img_src_error",ELEMENT_V2:"rule_compute_element_v2_xpath_error"},U=/^[\d\s()+.\-]+$/,F=function(t){var e=t.trim();if(!U.test(e))return!1;var r=e.replace(/\D/g,"");return r.length>=7&&r.length<=15},G=/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/,H=/(?:\+|00)?(?:\d{1,4})?(?:[\s\-./()]*\d){6,}(?:\s*(?:ext|x|#)\s*\d{1,6})?/i,V=function(t,e){var r,n,o,i=e.trim();return t.includes("email")?C(i)?i:(null==(r=i.match(G))?void 0:r[0])||"":t.includes("phone")?F(i)?i:(null==(o=null==(n=i.match(H))?void 0:n[0])?void 0:o.trim())||"":i},q=function(t){var e;return null===t?null:(null==(e=t.innerText)?void 0:e.length)>0?t.innerText.replace(k," ").replace(D,function(t){return t+" "}).replace(M," ").toLowerCase().trim():null},B=function(t){var e,r;if("IMG"===t.tagName)return t.getAttribute("src")||"";if(window.getComputedStyle){var n=window.getComputedStyle(t).getPropertyValue("background-image");if(null!==n&&"none"!==n&&n.length>0)return n}return"INPUT"===t.tagName&&t.getAttribute("src")||(null==(r=null==(e=t.getElementsByTagName("img"))?void 0:e[0])?void 0:r.getAttribute("src"))||null},K=function(t,e){var r;return(null==(r=q(t))?void 0:r.toLowerCase())===e},W=function(t,e){return B(t)===e},Y=function(t,e){var r;return null!=(r=null==t?void 0:t.matches)&&!!r.call(t,e)},X=function(t,e,r,n){var o=!1,i=null,a=null;switch(e){case"TOKENIZE_TEXT":a=K;break;case"IMG_SRC":a=W;break;case"ELEMENT_V2":a=Y}for(var c=0;c<5&&!["HTML","BODY"].includes(null==t?void 0:t.tagName);c++){if((null==t?void 0:t.matches("input[type='button'], input[type='image'], input[type='submit'], button, [class*=btn], [class*=Btn], [class*=button], [class*=Button], [role*=button], [href^='tel: '], [href^='callto: '], [href^='mailto: '], [href^='sms: '], [href^='skype: '], [href^='whatsapp: '], [id*=btn], [id*=Btn], [id*=button], [id*=Button], a"))&&(null==a?void 0:a(t,r))){o=!0,i=t;break}t=t.parentElement}return n?i:o};String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=!e||e<0?0:+e,this.substring(e,e+t.length)===t}}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t});var J=function(t,e,r,n){if("IS_BUTTON"===r)return(0,_.Oi)(t);switch(e){case"EQUALS":if([f.TOKENIZE_TEXT,f.IMG_SRC,f.ELEMENT_V2].includes(n))try{return X(t,n,r,!1)}catch(t){(0,m.vU)(g.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:j[n]});break}if("ELEMENT"==n)try{for(var o=document.querySelectorAll(r),i=Array.prototype.slice.call(o),a=0;a0)return!0;break;case"LT":if(tr)return!0;break;case"LT_OR_EQUAL":if(t<=r)return!0;break;case"GT_OR_EQUAL":if(t>=r)return!0;break;case"CONTAINS":if(r.split(";").filter(function(e){return(null==e?void 0:e.length)>0&&t.indexOf(e)>-1}).length>0)return!0;break;case"DOES_NOT_EQUAL":if(0==r.split(";").filter(function(e){return t==e}).length)return!0;break;case"DOES_NOT_CONTAIN":if(-1==t.indexOf(r))return!0;break;case"STARTS_WITH":if(t.startsWith(r))return!0;break;case"ENDS_WITH":if(t.endsWith(r))return!0;break;case"MATCHES_REGEX":if(r.test(t))return!0;break;case"MATCHES_REGEX_IGNORE_CASE":if(!r.test(t))return!0;break;case"MATCHES_CSS_SELECTOR":if(O(t,r,!0))return!0;break;case"DOSE_NOT_MATCHES_CSS_SELECTOR":if(O(t,r,!1))return!0}return!1};function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}("visibility"==t?["pageview","history_change","visibility"]:["pageview","history_change","click"]);!(a=c()).done;){var u=a.value;if(Z[u].indexOf(i)>-1){var s=void 0;switch(u){case"click":s=this.click(i,r);break;case"pageview":s=this.pageview(i);break;case"history_change":s=this.history_change(i,r,n);break;case"visibility":s=this.visibility(i,e.value,o)}return s}}},e.click=function(t,e){var r;if(!e)return!1;switch(t){case"ELEMENT":case"ELEMENT_V2":case"TOKENIZE_TEXT":case"IMG_SRC":case"ELEMENT_TARGET":r=e.target;break;case"ELEMENT_CLASSES":r=e.target.className;break;case"ELEMENT_ID":r=e.target.id;break;case"ElEMENT_URL":r=e.target.href||e.target.src||"";break;case"ELEMENT_TEXT":r=e.target.text||"";break;default:r=null}return r},e.pageview=function(t){var e;switch(t){case"PAGE_URL":case"PAGE_URL_V2":e=P(location.href,Q);break;case"PAGE_HOSTNAME":e=location.hostname;break;case"PAGE_PATH":e=location.pathname;break;case"REFERRER":e=P(document.referrer,Q);break;default:e=null}return e},e.history_change=function(t,e,r){var n;switch(t){case"NEW_HISTORY_FRAGMENT":n=location.hash;break;case"OLD_HISTORY_FRAGMENT":n=r.old_hash;break;case"NEW_HISTORY_STATE":n=history.state;break;case"OLD_HISTORY_STATE":n=r.old_state;break;case"HISTORY_SOURCE":n=e.type;break;default:n=null}return n},e.visibility=function(t,e,r){var n;switch(void 0===r&&(r=document),t){case"ELEMENT_ID":n="#"+e;break;case"ELEMENT_CLASS":n="."+e;break;case"ELEMENT":n=e;break;default:n=null}return r.querySelector(n)},t}(),tt=["CLICK","PAGEVIEW","VISIBILITY","HISTORY_CHANGE"];function te(){return{CLICK:[],PAGEVIEW:[],VISIBILITY:[],HISTORY_CHANGE:[]}}function tr(t){if(t&&tt.includes(t))return t}var tn=r(515),to=r.n(tn);function ti(t,e){return(ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ta=function(t){function e(e,r){var n;return(n=t.call(this)||this).BaseConf=e,n.SDK_ID=r,n.BaseConf.forEach(function(t){t.id=t.code_id,t.conditions=t.conditions||[],t.conditions.forEach(function(t){t.result=!1})}),n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ti(e,t),e.prototype.sendDebugEvent=function(t,e,r){var n=this.BaseConf,o=[];n.forEach(function(t){t.code_id==e&&(t.conditions=r),o.push(t)});var i={sdk_id:this.SDK_ID,event_name:t,data:o};this.emit("jelly_message",i)},e}(to()),tc=function(t,e,r){var n="";if(-1===e||void 0===e){var o=ts(t)[0];n=void 0!==o?tu(o,r):""}else{var i=ts(t)[e];n=void 0!==i?tu(i,r):""}return n},tu=function(t,e){var r="";if((e===h.KEEP||e===h.WRONG)&&(r=t),e===h.TURNINTOINTEGER&&(r=t.replace(/[,\.]/g,"")),e===h.TURNINTODECIMAL){var n=t.split(/[,\.]/g),o="";n.forEach(function(t,e){et.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(s);!(a=l()).done;){var f=a.value,h=f.absolute_path,p=f.relative_path;Array.isArray(r[t])||(r[t]=[]);var d=td({relativePath:p,absolutePath:h},e,c,u),v=d.text,_=d.nearbyLink;if(v){if(u){var m=V(t,v);if(!m||(t.includes("email")?!C(m):!(!t.includes("phone")||F(m))))continue;null==(o=r[t])||o.push(m);break}null==(i=r[t])||i.push(c?Object.assign({content_name:v},_&&{link:_}):v)}}})}}catch(t){(0,m.vU)(g.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"handle_parameter_list_v2_error"})}return r},t_=function(t,e){var r,n={};try{if(t.currency&&(n.currency=t.currency),t.value){var o=th(t.value,e);(null==o?void 0:o.innerHTML)&&(n.ori_value=o.innerHTML,n.value=tc(null==(r=o.innerHTML)?void 0:r.trim(),t.value_index,t.value_parsing_method)),n.value||(0,m.um)(g.O.CUSTOM_INFO,{custom_name:"eb_jelly_info",custom_enum:"dynamic_parameter_v2_value_empty",extJSON:{selector:t.value}})}return t.contents&&t.contents.length>0&&(n.contents=[],tp(t.contents,n.contents,e)),t.parameter_list_v2&&Object.assign(n,tv(t,e)),n}catch(t){return(0,m.vU)(g.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"dynamicParameter_v2_error"}),n}},tm=function(t,e,r,n,o,i){var a,c;try{var u={},s=null==(c=null==(a=(0,w.Ie)())?void 0:a.instance)?void 0:c.call(a,t);o&&Object.keys(o).forEach(function(t){var e,r=o[t];null!=r&&""!==r&&("eb_email"===t||"eb_phone_number"===t||("content_name"===t?u.contents=null==(e=u.contents||[])?void 0:e.concat(r):u[t]=r))}),u.eb_version=n,i&&(u.eb_rule_id=String(i)),r&&(u.is_button="true"),u.is_standard_mode="1",null==s||s.track(e,u,{})}catch(t){(0,m.vU)(g.O.CUSTOM_ERROR,t,{custom_name:"eb_jelly_error",custom_enum:"normalize_payload_error"})}};function tg(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ty(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ty(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ty(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0});u[e]=n,s=Math.max(s,n.length)}),0!==s)for(var l=e===v.mj.EVENT_LEVEL,f=l&&(0,b.b)(tI),h=l&&!f?"eb":"manual",p=null==(n=null==(r=(0,w.Ie)())?void 0:r.instance)?void 0:n.call(r,String(this.SDK_ID)),d=function(t){var r={};c.forEach(function(e){var n=u[e][t];if(n){var o=e+":"+n;a._identifiedPii.has(o)||(a._identifiedPii.add(o),r[tO[e][h]]=n)}}),Object.keys(r).length>0&&(e?null==(o=null==p?void 0:p.identify)||o.call(p,r,{trigger_source:e}):null==(i=null==p?void 0:p.identify)||i.call(p,r),f&&(0,m.um)(g.O.CUSTOM_INFO,{custom_name:"eb_event_level_pii_manual_key_migrate",custom_enum:tI,extJSON:{identify_keys:Object.keys(r)}},!1,!0))},_=0;_-1){var i=tb.dispatcher("visibility",t,null,null,e.document),a="_"+t.value;i&&A(e,i)&&!r[a]&&(o.push(S(i,"",t)),r[a]=!0)}else J(tb.dispatcher("visibility",t),t.operator,t.value,t.variable_type)||(n=!1)}),o.length>0&&Promise.all(o).then(function(e){for(var r,o=!0,i=tg(e);!(r=i()).done;)r.value.result&&n||(o=!1);o&&I(t.code)},function(){})})}};function tR(t,e){return(tR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var tN=function(t){function e(e,r,n){var o;if((o=t.call(this)||this).BaseConf=r,o.SDK_ID=e,window.jelly_tool_events&&window.jelly_tool_events.length&&window.jelly_tool_events.forEach(function(t){o.on(t.name,t.callback)}),o.emit("jelly_event",{SDK_ID:e,BaseConf:r||[]}),o.BaseConf instanceof Array){if(self._jelly_sdks=self._jelly_sdks||{},self._jelly_sdks[e]){if(void 0===o)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return o}self._jelly_sdks[e]=!0;var i=o.dispatch();o.trigger=new tT(i,r,e,function(t){o.emit("jelly_message",t)},n)}return o}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,tR(e,t),e.prototype.dispatch=function(){var t=te();return this.BaseConf.forEach(function(e){var r={code_id:e.code_id,code:e.code,conditions:e.conditions||[]},n=tr(e.trigger_type);n&&t[n].push(r)}),t},e}(to());window.TiktokJelly=tN}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},r.rv=function(){return"1.3.15"},r.ruid="bundler=rspack@1.3.15",function(){"use strict";var t,e,n,o,i,a,c,u=r(783),s=r(825),l=r(332),f=r(790),h=r(319),p=function(){var t=(0,l.Ie)();return"object"==typeof t&&t._i?t._i:{}},d=function(t,e){var r=p()||{};Object.keys(r).forEach(function(n){var o=r[n];o._init||o.push([t].concat(e))})},v=function(t,e,r){var n=(p()||{})[t];if(n){if(n._init)return;n.push([e].concat(r))}},_=r(618);(ib=i5||(i5={})).PIXEL_CODE="pixelCode",ib.EVENT_SOURCE_ID="eventSourceId",ib.SHOP_ID="shopId";var m=r(76),g=r(408),y=r(255),E=r(74);(iw=i8||(i8={})).INIT_START="initStart",iw.INIT_END="initEnd",iw.PATCH_END="patchEnd",iw.CONTEXT_INIT_START="contextInitStart",iw.CONTEXT_INIT_END="contextInitEnd",iw.PAGE_URL_WILL_CHANGE="pageUrlWillChange",iw.PAGE_URL_DID_CHANGE="pageUrlDidChange",iw.PAGE_DID_LOAD="pageDidLoad",iw.PAGE_WILL_LEAVE="pageWillLeave",iw.PAGE_LCP="pageLcp",iw.AD_INFO_INIT_START="adInfoInitStart",iw.AD_INFO_INIT_END="adInfoInitEnd",iw.BEFORE_AD_INFO_INIT_START="beforeAdInfoInitStart",iw.PIXEL_SEND="pixelSend",iw.PIXEL_DID_MOUNT="pixelDidMount",iw.SESSION_START="sessionStart",(iO=i4||(i4={})).UNKNOWN="-1",iO.LOADING="0",iO.INTERACTIVE="1",iO.COMPLETE="2",(iI=i9||(i9={})).HISTORY_CHANGE="hc",iI.URL_CHANGE="uc";var b=["page","track","identify"],w=["holdConsent","revokeConsent","grantConsent"],O=["identify"],I=["instance","instances","loadPixel","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"];(iT=i7||(i7={})).EMPTY_EVENT_TYPE_NAME="EMPTY_EVENT_TYPE_NAME",iT.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT="MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT",iT.LONG_EVENT_TYPE_NAME="LONG_EVENT_TYPE_NAME",iT.MISSING_VALUE_PARAMETER="MISSING_VALUE_PARAMETER",iT.MISSING_CURRENCY_PARAMETER="MISSING_CURRENCY_PARAMETER",iT.MISSING_CONTENT_ID="MISSING_CONTENT_ID",iT.MISSING_EMAIL_AND_PHONE="MISSING_EMAIL_AND_PHONE",iT.INVALID_EVENT_PARAMETER_VALUE="INVALID_EVENT_PARAMETER_VALUE",iT.INVALID_CURRENCY_CODE="INVALID_CURRENCY_CODE",iT.INVALID_CONTENT_ID="INVALID_CONTENT_ID",iT.INVALID_CONTENT_TYPE="INVALID_CONTENT_TYPE",iT.INVALID_EMAIL_FORMAT="INVALID_EMAIL_FORMAT",iT.INVALID_PHONE_NUMBER_FORMAT="INVALID_PHONE_NUMBER_FORMAT",iT.INVALID_EMAIL_INFORMATION="INVALID_EMAIL_INFORMATION",iT.INVALID_PHONE_NUMBER_INFORMATION="INVALID_PHONE_NUMBER_INFORMATION",iT.DUPLICATE_PIXEL_CODE="DUPLICATE_PIXEL_CODE",iT.MISSING_PIXEL_CODE="MISSING_PIXEL_CODE",iT.INVALID_PIXEL_CODE="INVALID_PIXEL_CODE";var T=function(t,e,r){t.isBound(e)?t.rebind(e).toConstantValue(r):t.bind(e).toConstantValue(r)},S=function(){var t=(0,l.Ie)();return t&&t._i||{}},R=function(t,e,r){void 0===r&&(r=g.S.OFFSITE);try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"webTtqFactory",start:performance.now()}}catch(t){}T(t,y.D.ENV,e),T(t,E.M.SignalType,r);var o=t.get(y.D.TTQ);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}return o},N=function(t,e){var r,n=e.id,o=e.type,i=void 0===o?i5.PIXEL_CODE:o,a=e.info,c=e.options,u=e.plugins,s=void 0===u?{}:u,l=e.rules,f=e.pixel_rules;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var h={taskName:window.ttq._pf_tn,functionName:"webReporterFactory",start:performance.now()}}catch(t){}var p=t.get(y.D.TTQ),d=t.get(y.D.TTQ_REPORTERS);if(!d.some(function(t){return t.getReporterId()===n})){T(t,E.M.ID,n),T(t,E.M.Type,i),T(t,E.M.Info,a||((r={})[i]=n,r)),T(t,E.M.Options,void 0===c?{}:c),T(t,E.M.Plugins,s),T(t,E.M.Rules,void 0===l?[]:l),T(t,E.M.PixelRules,void 0===f?[]:f),p.enableFirstPartyCookie((null==a?void 0:a.firstPartyCookieEnabled)||!1);var v=t.get(y.D.REPORTER);if(s){var _=s.AdvancedMatching,g=s.AutoAdvancedMatching,b={};_&&Object.assign(b,_),g&&Object.assign(b,g),v.setAdvancedMatchingAvailableProperties(b)}v.on(m.IM.BEFORE_REPORT,function(t,e,r,n,o){p.dispatch(i8.PIXEL_SEND,t,e,r,n,o)},{}),d.push(v),t.rebind(y.D.TTQ_REPORTERS).toConstantValue(d),p.dispatch(i8.PIXEL_DID_MOUNT,v);try{window.ttq&&window.ttq._ppf&&(h.end=performance.now(),window.ttq._ppf.push(h))}catch(t){}return v}},A=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"mergeWebGlobalTtq",start:performance.now()}}catch(t){}["getReporter","usePlugin","getPlugin","resetCookieExpires"].forEach(function(r){t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o-1&&setTimeout(function(){(0,u.um)(s.O.CUSTOM_INFO,{pixelCode:a,custom_name:e})}),t[e].apply(t,r)}catch(t){return(0,u.vU)(s.O.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),b.forEach(function(e){Object.defineProperty(o,e,{get:function(){return function(){try{var r=1==arguments.length&&void 0===arguments[0]?[]:Array.prototype.slice.call(arguments);return d(e,r),t[e].apply(t,r)}catch(t){return(0,u.vU)(s.O.API_ERROR,t,{extJSON:{api:e}}),{}}}},set:function(){}})}),r[n]._mounted=!0,r[n].initialize=!0,(0,l.gM)(r[n]);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},C=function(t,e,r){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"handleCache",start:performance.now()}}catch(t){}(0,_.Kn)(m.Cr.HANDLE_CACHE),k(e),Object.entries(S()).forEach(function(n){var o=n[0],i=n[1];if(!i._init&&("Tealium"===(0,l.kW)(o)||(0,l.cH)()||i.info)&&(e.getReporter(o)?(0,u.ZK)(i7.DUPLICATE_PIXEL_CODE):(r||N)(t,{id:o,type:i5.PIXEL_CODE,info:i.info,options:i.options,rules:i.rules,pixel_rules:i.pixel_rules,plugins:i.plugins}),i._init=!0,i.length>0))for(;i.length;){var a=i.shift();if(a){var c=a[0],f=a.slice(1),h=e.instance(o);if(h)switch(c){case"identify":h.identify(f[0],f[1]);break;case"page":e.page(f[0]);break;case"track":h.track(f[0],f[1],f[2]||{});break;default:h[c]?h[c](f[0],f[1],f[2]||{}):(0,u.vU)(s.O.CUSTOM_ERROR,Error("action not find: "+c))}}}}),D(e);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}},k=function(t){try{var e=(0,l.Ie)();[].concat(w,O).forEach(function(r){e.find(function(n,o){var i=n[0],a=n.slice(1);if(i===r)return t[r].apply(t,a),e.splice(o,1),!0})})}catch(t){(0,u.vU)(s.O.API_ERROR,t,{extJSON:{api:"handleP0APICache"}})}},D=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"handleGlobalCache",start:performance.now()}}catch(t){}var r=(0,l.Ie)();if(r.length>0)for(;r.length;){var n=r.shift();if(n){var o=n[0],i=n.slice(1);switch(!(0,l.ri)("Tealium")&&d(o,i),o){case"identify":t.identify(i[0],i[1]);break;case"page":t.page(i[0]);break;case"track":t.track(i[0],i[1],i[2]||{});break;case"enableCookie":t.enableCookie();break;case"disableCookie":t.disableCookie();break;case"holdConsent":t.holdConsent();break;case"revokeConsent":t.revokeConsent();break;case"grantConsent":t.grantConsent()}}}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}};function M(t,e,r){return(M=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}()?function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&j(o,r.prototype),o}:Reflect.construct.bind()).apply(null,arguments)}function j(t,e){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var U="_ttq_inject",F=function(){function t(){this.bindings={},this.rebind=this.bind}var e=t.prototype;return e.bind=function(t){var e=this;return{to:function(r){return e.bindings[t.toString()]={constructor:r,singleton:!1},e},toConstantValue:function(r){return e.bindings[t.toString()]={value:r,singleton:!0},e}}},e.isBound=function(t){return!!this.bindings[t.toString()]},e.inSingletonScope=function(){var t=Object.keys(this.bindings),e=t[t.length-1];if(e){var r=this.bindings[e];r&&(this.bindings[e]=Object.assign(Object.assign({},r),{singleton:!0}))}return this},e.get=function(t){var e=this.bindings[t.toString()];if(!e)throw Error("No binding found for identifier: "+String(t));return void 0!==e.value?e.value:e.singleton?(e.instance||(e.instance=this.createInstance(e.constructor)),e.instance):this.createInstance(e.constructor)},e.createInstance=function(t){var e=this;if(!t)throw Error("Cannot create instance because constructor is not defined.");var r=(t[U]||[]).map(function(t){try{return e.get(t.identifier)}catch(e){if(t.optional)return;throw e}});return M(t,r)},t}();function G(){return function(t){}}function H(t){return function(e,r,n){e[U]=e[U]||[],e[U][n]=Object.assign({},e[U][n],{identifier:t})}}function V(){return function(t,e,r){t[U]=t[U]||[],t[U][r]=Object.assign({},t[U][r],{optional:!0})}}(iS=at||(at={})).BIND="bind",iS.REBIND="rebind";var q=r(229),B={cachedReferrer:"",cachedTitle:"",cachedHref:"",timer:null};function K(t,e){try{var r=new URL(t),n=r.searchParams.getAll(e);if(0!==n.length)return n[n.length-1]||"";return new URLSearchParams(r.hash).get(e)||""}catch(t){return""}}var W=function(t,e,r){try{var n=K(e,t);if(n)return n;return K(r||"",t)}catch(t){}return""};function Y(){B.cachedHref=window.location.href,B.cachedReferrer=document.referrer,B.cachedTitle=document.title,B.timer&&clearTimeout(B.timer),B.timer=setTimeout(function(){B.cachedHref="",B.cachedReferrer="",B.cachedTitle="",B.timer=null},3e3)}var X=function(){if(!(0,f.zd)())return(window.location.href!==B.cachedHref||null===B.timer)&&Y(),{url:B.cachedHref,referrer:B.cachedReferrer,title:B.cachedTitle};if(!(0,f.xD)()){var t,e,r,n,o,i;return{url:(null==(t=window)||null==(e=t.top)?void 0:e.location.href)||"",referrer:(null==(r=window)||null==(n=r.top)?void 0:n.document.referrer)||"",title:(null==(o=window)||null==(i=o.top)?void 0:i.document.title)||""}}if((null===B.timer||window.location.href!==B.cachedHref)&&Y(),/doubleclick\.net/.test(window.location.hostname)){var a=window.location.pathname,c={};return a.split(";").forEach(function(t){var e=t.split("="),r=e[0],n=e[1];r&&n&&(c[r]=decodeURIComponent(n))}),{url:c["~oref"]||B.cachedHref,referrer:B.cachedReferrer,title:B.cachedTitle}}return{url:B.cachedHref,referrer:B.cachedReferrer,title:B.cachedTitle}},J=function(t){var e=X().url;try{return new URL(t||e)}catch(t){}return null},z=function(t){var e;return(null==t||null==(e=t.localServiceConfig)?void 0:e.key)||q.RC},Z=function(t){try{var e=window.sessionStorage.getItem(t);if(!e)return null;return JSON.parse(e)}catch(t){return null}},Q=function(t){try{window.sessionStorage.removeItem(t)}catch(t){}},$=function(t,e){try{var r=JSON.stringify(e);window.sessionStorage.setItem(t,r)}catch(t){}},tt="https://analytics.tiktok.com/api/v2",te=tt+"/pixel",tr=tt+"/performance",tn=tt+"/interaction",to=tt+"/performance_interaction",ti=tt+"/pixel/perf",ta=tt+"/pixel/inter",tc=tt+"/pixel/act",tu=tt+"/monitor",ts="https://analytics-ipv6.tiktokw.us/ipv6/enrich_ipv6",tl="ttclid",tf="_toutiao_params",th=r(688),tp=/^\d{13}$/,td=function(t){var e=t.lastIndexOf("."),r=t.slice(e+1);return e<=0||!tp.test(r)?{clickId:t}:{clickId:t.slice(0,e),observedAt:Number(r)}},tv=function(t,e){return t?e&&td(e).clickId===t?e:t+"."+(0,th.u3)():""},t_=function(t,e){try{var r=W(tl,t,e),n=r?tv(r):void 0,o=W("ext_params",t,e)||void 0,i=W(tf,t,e)||void 0,a=parseInt(W("ttuts",t,e),10)||void 0,c=i?JSON.parse(i):{},u=c.log_extra,s=void 0===u?void 0:u,l=c.idc,f=void 0===l?void 0:l,h=c.cid,p=void 0===h?void 0:h;return{callback:n,ext_params:o,log_extra:s,creative_id:p,idc:f,ttuts:a,ad_info_from:(s||f||p)&&"url"}}catch(t){return{}}},tm=function(t,e){try{var r=t.log_extra,n=t.ttuts;if(!(0,f.gn)())return!0;if(!(0,f.XA)(e)){if(null!=n)return 1!==n;return!0}if(r){var o=JSON.parse(r);return 1!==o.user_tracking_status}if(null===t.ATTStatus||void 0===t.ATTStatus)return!0;return 3===t.ATTStatus}catch(t){return!1}},tg=function(t,e){var r={};try{var n=t.creative_id,o=(t.callback,t.idc),i=t.convert_id,a=t.ad_info_from,c=t.ad_info_status,u=t.log_extra,s=t.ext_params,l=t.ATTStatus;if(n&&(r.creative_id=n),o&&(r.idc=o),i&&(r.convert_id=i),a&&(r.ad_info_from=a),c&&(r.ad_info_status=c),s&&(r.ext_params=s),l&&(r.ATTStatus=l),u){var f=JSON.parse(u),h=f.ad_user_agent,p=f.ad_id,d=f.rit,v=f.ocbs,_=f.vid,m=f.idc,g=f.country_id;p&&(r.ad_id=p),d&&(r.rit=d),h&&(r.ad_user_agent=h),v&&(r.ocbs=v),_&&(r.vid=_),m&&(r.idc=m),g&&(r.country_id=g)}return r}catch(t){return e&&e(t),r}},ty=r(188),tE=function(t){void 0===t&&(t={});var e=Object.assign({},{path:"/"},t);"number"==typeof e.expires&&(e.expires=new Date((0,th.u3)()+864e5*e.expires)),e.expires instanceof Date&&(e.expires=e.expires.toUTCString());var r="";for(var n in e)e[n]&&(r+="; "+n,!0!==e[n]&&(r+="="+e[n].split(";")[0]));return r},tb=function(t,e,r,n){void 0===r&&(r="/"),void 0===n&&(n=(0,ty.pW)()),tN(t,e,{path:r,expires:n})},tw=function(t){if(t&&t.cde){var e=t.cde;return Object.assign({},q.Yp,{expires:e})}return q.Yp},tO=function(){var t=tR(q.qC);if(t&&tx(t)){var e=tk(),r=window.location.hostname.split("."),n="."+r.slice(r.length-e-1).join(".");return null!=n?n:void 0}},tI=0,tT=0,tS=function(t){var e={};return document.cookie.split(";").forEach(function(t){var r=t.split("=");e[r[0].trim()]=r.slice(1).join("=")}),e[t]||""},tR=function(t){if(0===document.cookie.length)return"";var e=tS(t);return e?unescape(e):""},tN=function(t,e,r,n){try{if(r){var o=window.location.hostname.split(".");if(tT=o.length,(tI=tk())&&tI=3&&e.includes("tt")&&""!==e[2]&&!isNaN(Number(e[2]))&&Number(e[2])>=0},tC=function(t){if(tx(t)){var e=t.split(".")[3];return tL.test(e||"")?Number(e):void 0}},tk=function(){if(tI)return tI;var t=tR(q.qC);return t&&tx(t)?Number(t.split(".")[2]):0},tD=function(t,e,r,n){return t!==q.qC||tx(e)||(e=tP(e,n)),document.cookie=t+"="+e+tE(r),e===tR(t)},tM=function(t,e,r){void 0===t&&(t=""),void 0===e&&(e="");try{var n=W("tt_test_id",t,r);return n&&n!==e&&tb("tt_test_id",n,void 0,"session"),n||e}catch(t){return""}},tj=r(729);function tU(){return(tU=Object.assign?Object.assign.bind():function(t){for(var e=1;e18e5?{sessionId:o.toString()+"::"+(0,h.$j)(20),sessionCount:r+1,lastEventTS:o,isSessionStart:!0}:tU({},t,{lastEventTS:e===ae.INTER_ID_TRIGGER?n:o,isSessionStart:!1})},tq=function(t){var e=t.sessionId,r=t.sessionCount,n=t.lastEventTS,o=t.hasReportedES,i=t.inter_id;return e+"."+r+"."+n+"."+(null!=o?o:0)+(i?"::"+i:"")},tB=function(t,e,r){var n=t||{},o=n.sessionId,i=n.sessionCount,a=n.isSessionStart;return Object.assign({csid:void 0===o?"":o,page_csid:e?e.sessionId:"",csct:void 0===i?1:i},void 0!==a&&a?{css:1}:{},r?{pixel_code:r}:{})},tK=function(){function t(t){this.pixelCode="",this.loaded=!1,this.status=1,this.name="",this.advertiserID="",this.setupMode=0,this.partner="",this.reporterInfo={},this.plugins={},this.options={},this.rules=[],this.pixelCode=t}var e=t.prototype;return e.getParameterInfo=function(){return Promise.resolve({pixelCode:this.pixelCode,name:this.name,status:this.status,setupMode:this.setupMode,advertiserID:this.advertiserID,partner:this.partner,is_onsite:!1,advancedMatchingAvailableProperties:{}})},e.getReporterId=function(){return""},e.getReporterUniqueLoadId=function(){return""},e.getReporterPartner=function(){},e.getReporterInfo=function(){return{reporter:{}}},e.getReportResultSet=function(){return[]},e.isOnsite=function(){return!1},e.isPartnerReporter=function(){return!1},e.setAdvancedMatchingAvailableProperties=function(t){},e.clearHistory=function(){},e.page=function(t){},e.identify=function(t,e){},e.track=function(t,e,r){return Promise.resolve(null)},e.getUserInfo=function(t){return{}},e.getReporterMatchedUserFormatInfo=function(){return{}},e.getReporterMatchedUserFormatInfoV2=function(){return{}},e.assemblyData=function(){return{event:"",message_id:"",event_id:"",is_onsite:!1,properties:{},context:{ad:{},device:{},library:{name:"",version:""},page:{url:""},pageview_id:"",session_id:"",variation_id:"",user:{}},partner:"",timestamp:""}},e.assemblySelfHostData=function(){return this.assemblyData()},e.trackSync=function(){},e.getReportEventHistoryKey=function(t){return"tiktok"},e.hasReportEventHistory=function(t,e){return!1},e.getCookieBasedSession=function(){return tG()},e.setCookieBasedSession=function(t){},t}();new tK("empty");var tW=function(){function t(t,e,r,n){this.initialize=!1,this.plugins=[],this.observers=[],this.reporters=[],this.context=t,this.reportService=e,r&&(this.emitter=r),n&&(this.sensitiveRedactor=n)}var e=t.prototype;return e.init=function(t,e){this.initContextInfo(t,e),this.initialize=!0},e.initContextInfo=function(t,e){var r=this;this.dispatch(i8.CONTEXT_INIT_START),this.initAdInfo(t,e),this.initAppInfo(t,e),this.initLocalServiceInfo(),this.reportService.pushPreposition(Promise.resolve().then(function(){return r.initUserInfo()})),this.initTestId(t,e),this.dispatch(i8.CONTEXT_INIT_END)},e.setPageIndex=function(t){},e.setPageInfo=function(t,e){var r=this.context.getPageInfo().url;if(r!==t){this.dispatch(i8.PAGE_URL_WILL_CHANGE,e||r,t);var n=this.context.setPageInfo(t,e||r);(null==n?void 0:n.pageIndex)&&this.setPageIndex(n.pageIndex),this.dispatch(i8.PAGE_URL_DID_CHANGE,t,r)}},e.initAdInfo=function(t,e){},e.initOffsiteAdInfo=function(t){},e.initAppInfo=function(t,e){},e.initUserInfo=function(){},e.initTestId=function(t,e){},e.usePlugin=function(t){try{if(!this.plugins.find(function(e){return e.name===t.name})){this.plugins.push(t);var e=t.name;e&&(this[e[0].toLowerCase()+e.slice(1)+"Plugin"]=t)}}catch(t){}},e.useObserver=function(t){try{if(!this.observers.find(function(e){return e.name===t.name})){this.observers.push(t);var e=t.name;e&&(this[""+(e[0].toLowerCase()+e.slice(1))]=t)}}catch(t){}},e.getPlugin=function(t){return this.plugins.find(function(e){return e.name===t})||null},e.getReporter=function(t){return this.reporters.find(function(e){return e.getReporterId()===t})},e.instance=function(t){var e=this.getReporter(t);return e||((0,u.vU)(s.O.PIXEL_EMPTY,Error(""),{pixelCode:t}),new tK(t))},e.instances=function(){return this.reporters},e.identify=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r={taskName:window.ttq._pf_tn||"identify_api_handler",functionName:window.ttq._pf_tn&&"identify_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_api_handler")}}catch(t){}var n=(0,h.oh)(t,e);this.context.setUserInfo(n,e);try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"identify_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.page=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"page_api_handler",functionName:window.ttq._pf_tn&&"page_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_api_handler")}}catch(t){}t.url!==this.context.getPageInfo().url&&(this.setPageInfo(t.url,t.referrer),this.reporters.forEach(function(t){t.clearHistory()}));var r=Object.assign({},t);delete r.url,delete r.referrer,this.reporters.forEach(function(t){t.page(r)});try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"page_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.isOnsitePage=function(){return this.context.getSignalType()===g.S.ONSITE||this.reporters.every(function(t){return t.isOnsite()})},e.track=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var n={taskName:window.ttq._pf_tn||"track_api_handler",functionName:window.ttq._pf_tn&&"track_api_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="track_api_handler")}}catch(t){}this.instances().forEach(function(n,o){n.track(t,e,Object.assign({_i:o},r))});try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"track_api_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},e.dispatch=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function tX(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}tW=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G()],tW);var tJ=(iN=tY().mark(function t(e,r){return tY().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===r&&(r=1),!(r>=0)){t.next=13;break}return t.prev=2,t.next=5,function(t){return new Promise(function(e,r){var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.src=t;var o=document.getElementsByTagName("script")[0];o&&o.parentNode?o.parentNode.insertBefore(n,o):r("none element"),n.onload=function(){e(!0)},n.onerror=r})}(e);case 5:return t.abrupt("return",Promise.resolve(!0));case 8:return t.prev=8,t.t0=t.catch(2),t.abrupt("return",tJ.call(null,e,r-1));case 11:t.next=14;break;case 13:throw Error;case 14:case"end":return t.stop()}},t,null,[[2,8]])}),iA=function(){var t=this,e=arguments;return new Promise(function(r,n){var o=iN.apply(t,e);function i(t){tX(o,r,n,i,a,"next",t)}function a(t){tX(o,r,n,i,a,"throw",t)}i(void 0)})},function(t,e){return iA.apply(this,arguments)});(iL=ar||(ar={})).TRACK="track",iL.PERFORMANCE="performance",iL.INTERACTION="interaction",iL.PCM="PCM",iL.PERFORMANCE_INTERACTION="performance_interaction",iL.SELFHOST="selfhost",iL.AUTO_CONFIG="auto_config",iL.PAGE="Pf",iL.PAGE_PERFORMANCE="page_performance",iL.PAGE_INTERACTION="page_interaction";var tz=["EnrichAM"];function tZ(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1?r-1:0),o=1;o=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G()],t8);var t4=function(t,e){if("selfhost"===t&&e&&(0,l.My)(e))return"https://"+(0,l.My)(e)+"/api/v2/pixel";var r={track:te,performance:tr,interaction:tn,performance_interaction:to,auto_config:tc,page_performance:ti,page_interaction:ta}[t];return r||null};function t9(){return(t9=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G()],et);var ee=["event_experiment","dynamic_parameter_config","eb_version","eb_rule_id","tf","trigger_source","inter_id"],er=function(){return"US"===(0,l.so)()&&(0,f.b)(q.zc)},en=function(t){var e=t.getUserInfo().anonymous_id,r=tR(q.qC);e!==r&&t.setUserInfoWithoutIdentifyPlugin({anonymous_id:r})},eo=function(t,e,r){try{var n=window.location.hostname.split(".");if(void 0!==aa&&aa=0;o--){var i="."+n.slice(o).join(".");if(document.cookie=t+"="+e+tE(Object.assign({},r,{domain:i})),tR(t)===e){aa=o;break}}}catch(t){}},ei=function(t,e,r,n){void 0===n&&(n=ae.ORIGIN_TRIGGER);var o=tG();return e&&(o=tV(e,n)),eo(t?q.ku+"_"+t:q.ku,tq(o),tw(r)),o},ea=new Set([",","?",";","!","、",",","。","?",";","!",":",":"," "]);(ik=au||(au={})).ID_SSN="ID_SSN",ik.PASSPORT="PASSPORT",ik.DRIVING_LICENSE="DRIVING_LICENSE",ik.PHONE="PHONE",ik.EMAIL="EMAIL",ik.CREDIT_CARD="CREDIT_CARD",ik.RACE_ETHNIC="RACE_ETHNIC",ik.RELIGION="RELIGION",ik.SEXUAL_ORIENTATION="SEXUAL_ORIENTATION",ik.POLITICAL_AFFILIATION="POLITICAL_AFFILIATION",ik.UNION_MEMBERSHIP="UNION_MEMBERSHIP",ik.CRIMINAL_RECORD="CRIMINAL_RECORD",ik.DEFAULT="***";var ec=((ac={})[au.RACE_ETHNIC]=["asian","black","white","caucasian","hispanic","latino","arab","middle eastern","african american","native american","indigenous","pacific islander","jewish","afro","mulatto","mestizo","racial","ethnicity","ethnic group"],ac[au.RELIGION]=["christian","catholic","protestant","baptist","orthodox","muslim","islam","islamic","sunni","shia","jewish","judaism","synagogue","hebrew","hindu","hinduism","vedic","bhagavad","buddhist","buddhism","taoism","shinto","atheist","agnostic","secular","religious belief"],ac[au.SEXUAL_ORIENTATION]=["heterosexual","homosexual","bisexual","pansexual","gay","lesbian","lgbt","lgbtq","queer","asexual","sexual orientation","gender identity","trans","transgender","nonbinary","non-binary"],ac[au.POLITICAL_AFFILIATION]=["democrat","democratic","republican","libertarian","conservative","liberal","progressive","nationalist","communist","socialism","socialist","marxist","left-wing","right-wing","maga","antifa","alt-right","green party","political party","political ideology"],ac[au.UNION_MEMBERSHIP]=["labor union","trade union","union member","collective bargaining","strike","unionized","organized labor","workers' union","teamsters","AFL-CIO","IBEW","union dues","union card"],ac[au.CRIMINAL_RECORD]=["arrest","arrested","convicted","conviction","felony","felon","misdemeanor","parole","probation","criminal record","jail","prison","inmate","suspect","indictment","charged with","mugshot"],ac),eu=Object.values(au).reduce(function(t,e){return t[e]="<#"+e+"#>",t},{}),es={prefix:"(?|[^>]*<))"},el=e_(["(?:\\+?\\d{1,3}[\\s-]?|\\(\\+?\\d{1,3}\\)[\\s-]?)?(?:\\d{2,4}[\\s-]?|\\(\\d{2,4}\\)[\\s-]?)?(?:\\d[\\s-]?){5,}"],es,"g"),ef=e_(["([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\\.[a-zA-Z0-9._-]+)"],es,"gi"),eh=e_(["(?:(?:4[0-9]{3}|5[1-5][0-9]{2}|6011|65[0-9]{2}|3[47][0-9]{2}|3(?:0[0-5]|[68][0-9])|2131|1800|35\\d{2})[-\\s]?(?:[0-9]{4}[-\\s]?){2}[0-9]{3,4}|62[0-9]{3}[-\\s]?(?:[0-9]{4}[-\\s]?){2,3}[0-9]{3,4})$(?![\\d])"],es,"g"),ep=e_(["\\d{3}-\\d{2}-\\d{4}|\\d{9}","\\d{17}(\\d|X|x)$","[A-CEGHJ-PR-TW-Z]{2}\\d{6}[A-D]?","(?:[A-Z]\\d{10}|\\d{10})","[A-Z0-9]{12}"],es,"g"),ed=e_(["[EDS]\\d{8}","[A-HJ-NP-Z][A-HJ-NP-Z0-9]{8}","[A-Z]{2}\\d{6}"],es,"g"),ev=e_(["\\d{17}[\\dXx]","[A-Z0-9]{16}","[A-Z0-9]{10,12}","[A-Z0-9]{12}"],es,"g");function e_(t,e,r){return void 0===e&&(e={prefix:"",suffix:""}),void 0===r&&(r=""),t.map(function(t){try{var n,o,i,a=new RegExp(t,r),c=a.source;if(c.startsWith("^")&&c.endsWith("$"))return a;return n=a,o=e.prefix,i=e.suffix,void 0===o&&(o=""),void 0===i&&(i=""),RegExp(""+o+n.source+i,n.flags)}catch(t){return/[]/}})}function em(t,e){return(em=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eg=function(t){function e(e){(n=t.call(this,e.context,e.reportService)||this).ttp="",n.loaded=!1;var r,n,o=e.id,i=e.type,a=e.isOnsitePage,c=e.reporterInfo,u=e.ttqOptions,s=e.plugins,l=e.rules,f=e.pixel_rules,h=e.options;return n.id=o,n.pixelCode=o,n.type=i,n.isOnsitePage=a,n.options=(void 0===h?{}:h)||{},n.plugins=(void 0===s?{}:s)||{},n.rules=(void 0===l?[]:l)||[],n.pixel_rules=(void 0===f?[]:f)||[],n.reporterInfo=Object.assign(c||{},((r={})[i]=o,r)),n.ttp=u.ttp||"",n.currency_list=u.currency_list||null,n.ttqPartner=u.partner||"",n.selfHostConfig=u.self_host_config||{},n.ttqOptions=u,n.pixelPromise=n.getInstance(),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,em(e,t);var r=e.prototype;return r.identify=function(t,e){var r=(0,h.oh)(t,e);this.context.setUserInfo(r,Object.assign({reporterId:this.id},(null==e?void 0:e.trigger_source)&&{trigger_source:e.trigger_source}))},r.getReporterId=function(){return this.id||""},r.getReporterUniqueLoadId=function(){return this.reporterInfo.loadId+"-"+this.getReporterId()},r.getReporterPartner=function(){var t;return(null==(t=this.reporterInfo)?void 0:t.partner)||""},r.setPixelInfo=function(t,e,r){var n,o=this.type;this.reporterInfo=Object.assign(this.reporterInfo,Object.assign({},t),((n={})[o]=this.getReporterId(),n)),e&&(this.rules=e),r&&(this.plugins=r)},r.getInstance=function(){return Promise.resolve(this)},r.getReporterInfo=function(){return this.reporterInfo.pixelCode?t.prototype.getReporterInfo.call(this):{shop_id:this.reporterInfo.shopId,eventSourceId:this.reporterInfo.eventSourceId}},r.getUserInfo=function(t){var e=this.context.getUserInfo(),r=(0,h.cm)(e,Object.assign({},this.advancedMatchingAvailableProperties));switch(t){case tj.Ts.Manual:return(0,h.cm)(this.isPartnerReporter()?r:e,{external_id:!0,email:!0,phone_number:!0,ttoclid:!0});case tj.Ts.ManualV2:return(0,h.cm)(this.isPartnerReporter()?r:e,{first_name:!0,last_name:!0,city:!0,state:!0,country:!0,zip_code:!0,partner_id:!0,ttoclid:!0});case tj.Ts.EBManual:return(0,h.cm)(e,{eb_email:this.advancedMatchingAvailableProperties.auto_email,eb_phone_number:this.advancedMatchingAvailableProperties.auto_phone_number,acp:this.advancedMatchingAvailableProperties.auto_email||this.advancedMatchingAvailableProperties.auto_phone_number});case tj.Ts.Auto:var n=(0,h.cm)(r,{external_id:!0,auto_email:!0,auto_phone_number:!0,ttoclid:!0});return Object.assign(n,(0,h.cm)(e,{auto_zip_code:this.advancedMatchingAvailableProperties.auto_address})),Object.assign(n,(n.auto_email||n.auto_phone_number)&&e.auto_trigger_type?{auto_trigger_type:e.auto_trigger_type}:{});default:return r}},r.getReporterMatchedUserFormatInfo=function(){var t=this.context.getUserFormatInfo(),e=(0,h.QO)(t,this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0}),r=(0,h.cm)(t,{auto_email:!0,auto_phone_number:!0});return Object.keys(r).length>0&&(e.identity_params||(e.identity_params={}),Object.assign(e.identity_params,r)),e},r.getReporterMatchedUserFormatInfoV2=function(){var t=this.context.getUserFormatInfoV2(),e=this.isPartnerReporter()?this.advancedMatchingAvailableProperties:{external_id:!0,email:!0,phone_number:!0,first_name:!0,last_name:!0,city:!0,state:!0,country:!0,zip_code:!0,partner_id:!0};return(0,h.te)(t,e)},r.isOnsite=function(){var t;return!!(null==(t=this.reporterInfo)?void 0:t.is_onsite)},r.isPartnerReporter=function(){var t=this.getReporterPartner();return!!(t&&"None"!==t)},r.getSignalDiagnosticLabels=function(){var t=this.context.getSignalDiagnosticLabels();if(!t)return Object.assign({},tj.N4);var e=this.advancedMatchingAvailableProperties,r=e.email,n=e.phone_number,o=e.auto_email,i=e.auto_phone_number;r=!this.isPartnerReporter()||r,n=!this.isPartnerReporter()||n;var a=(0,h.cm)(t,{raw_email:r,raw_phone:n,hashed_email:r,hashed_phone:n,raw_auto_email:o,raw_auto_phone:i,raw_eb_email:!0,raw_eb_phone:!0,hashed_eb_email:!0,hashed_eb_phone:!0}),c={};return(o||i)&&Object.keys(t).forEach(function(e){e.startsWith("aam_")&&(c[e]=t[e])}),Object.assign({},tj.N4,a,c)},r.setCookieBasedSession=function(t){return t&&(this.session=t),this.session},r.convertCookieBasedSession=function(t,e,r){return tF(this.reporterInfo,this.ttqOptions)&&t!==ar.AUTO_CONFIG&&e&&r?tB(e,r):{}},r.assemblyData=function(e,r,n,o,i){void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=ar.TRACK);var a,c,p,d=t.prototype.assemblyData.call(this,e,r,n,o,i);d.is_onsite=this.isOnsitePage.value;var v=(0,l.kW)(e)||this.ttqPartner;v&&(d.partner=v),d.signal_diagnostic_labels=this.getSignalDiagnosticLabels();var _=(0,l.Ie)().getPlugin("SensitiveRedactor");if(_){_.registerEncryptRedactor({keywords:[],regexArray:ef},h.JQ);var m=_.processSync(d.signal_diagnostic_labels,"encrypt");m.success?d.signal_diagnostic_labels=m.redactedOutput:(0,u.vU)(s.O.CUSTOM_ERROR,m.error,{custom_name:"sensitive_redactor_error",extJSON:{message:"signal_diagnostic_labels"}})}var g=(0,l.ij)();g&&(d.context.userAgent=g);var E=function(){try{var t=document.readyState;if("loading"==t)return i4.LOADING;if("interactive"==t)return i4.INTERACTIVE;if("complete"==t)return i4.COMPLETE;return i4.UNKNOWN}catch(t){return i4.UNKNOWN}}();if(E&&(d.context.page.load_progress=E),!(0,l.n2)()&&Object.keys(this.context.userInfoFieldAllowlist).length){var b=Object.entries(this.context.userInfoFieldAllowlist).filter(function(t){var r=t[1];return -1===r.indexOf("all")&&-1==r.indexOf(e)}).map(function(t){return t[0]});d.context.user=(0,h.mQ)(d.context.user,b)}if(null==(p=d.context.user.acp)?void 0:p.length){var w=!!d.context.user.eb_email,O=!!d.context.user.eb_phone_number,I=d.context.user.acp.filter(function(t){var e=t.type;return e===tj.MX.Email?w:e===tj.MX.Phone&&O});I.length>0?d.context.user.acp=I:delete d.context.user.acp}a=d.properties,void 0===(c=d._inspection)&&(c={}),ee.forEach(function(t){a.hasOwnProperty(t)&&(c[t]=a[t],delete a[t])}),d._inspection=c,i!==ar.PAGE&&(d._inspection.ppf=(0,l.c6)()),d._inspection.vids=this.context.getVids();var T=(0,l.er)();if(T&&tF(this.reporterInfo,this.ttqOptions)&&function(){try{var t=(0,l.Ie)(),e=null==t||null==(r=t._container)?void 0:r.get(y.D.TTQ_REPORTERS);if(!e)return!1;for(var r,n,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return tZ(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tZ(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(n=o()).done;){var i=n.value;if(i.plugins&&!0===i.plugins.AutoConfigV2)return!0}return!1}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"jelly-core_config",custom_enum:"hasPixelEnableAutoConfigV2"}),!1}}()&&(d._inspection.inter_id=T),(0,h.Zq)(r)&&this.plugins.AutoConfigV2){var S=this.context.getTransactionId();S&&(d._inspection.dynamic_parameter_config={value:S})}return d.context.ad.sdk_env=(0,f.RA)(),d.context.ad.jsb_status=(0,f.Fn)(),i!==ar.INTERACTION&&i!==ar.PERFORMANCE&&i!==ar.PERFORMANCE_INTERACTION||!1!==this.context.getEnableAdTracking()||this.isOnsitePage.value||(d.context.user={},d.context.ad=this.context.getOffsiteAdInfo(),d.context.ad=(0,h.mQ)(d.context.ad,tQ)),d.properties.reporterId&&delete d.properties.reporterId,d},r.page=function(t){void 0===t&&(t={});var e=X().url;e!==this.currentHref&&(this.currentHref=e,this.track(t$,t,{}))},r.track=function(e,r,n,o,i){var a=this;void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=ar.TRACK),void 0===i&&(i=ao.defaultReport);var c=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var c={taskName:window.ttq._pf_tn||"track_after_reporter_init",functionName:window.ttq._pf_tn&&"track_after_reporter_init",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="track_after_reporter_init")}}catch(t){}var u=a.getReporterId();if(tz.includes(e))return t.prototype.track.call(a,e,r,n,o,i);var s=Object.assign({},n);a.selfHostConfig[u]&&!n.eventID&&(s=Object.assign({},s,{eventID:(0,ty.gj)((0,ty.fV)(q.qf),u)}));try{window.ttq&&window.ttq._ppf&&(c.end=performance.now(),window.ttq._ppf.push(c),"track_after_reporter_init"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return t.prototype.track.call(a,e,r,s,o,i)};return this.loaded?c():this.getInstance().then(c)},r.getEventType=function(t){return t3[t]||t},r.trackSync=function(e,r,n,o,i,a,c){if(void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=ar.TRACK),void 0===a&&(a=ao.defaultReport),"track"===i&&(0,u.um)(s.O.PIXEL_SEND,{pixelCode:e,extJSON:{event:r}}),i!==ar.TRACK)return void t.prototype.trackSync.call(this,e,r,n,o,i,a,c);n&&"string"==typeof n.currency&&(n.currency=n.currency.toUpperCase());var l,f=this.context.getTestID();if(f){var h=this.assemblyData(e,r,n,o);return h.tt_test_id=f,h.context.ad={},null==(l=this===null||void 0===this?void 0:this.reportService)||l.report(c||te,h,ao.htmlHttpReport,ai.P0),h}if(n&&"object"==typeof n){var p,d=n,v=d.value,_=d.currency;void 0===v||!isNaN(v)&&v>=0||(0,u.um)(s.O.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_value",extJSON:{event:r,value:v,currency:_}}),void 0===_||(void 0===(p=this.currency_list)&&(p=null),(p||t5).includes(_))||(0,u.um)(s.O.CUSTOM_ERROR,{pixelCode:e,custom_name:"invalid_currency",extJSON:{event:r,value:v,currency:_}})}return t.prototype.trackSync.call(this,e,r,n,o,i,a,c)},r.trackPostTask=function(t){var e=t.reporterId,r=t.eventType,n=t.properties,o=t.eventConfig;tz.includes(r)||this.selfHostConfig[e]&&!this.hasReportEventHistory(r,ao.htmlHttpReport)&&(this.pushReport(r,this.getReportEventHistoryKey(ao.htmlHttpReport)),this.trackSync(e,r,n,o,ar.SELFHOST,ao.htmlHttpReport))},r.getReportEventHistoryKey=function(t){return t===ao.htmlHttpReport?this.selfHostConfig[this.getReporterId()]:"tiktok"},r.assemblySelfHostData=function(t,e,r,n,o){void 0===r&&(r={}),void 0===n&&(n={});var i=this.assemblyData(t,e,r,n,o),a=this.ttp;return a&&(i.context.user.ttp=a),i},e}(et);function ey(t,e){return(ey=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eE=function(t,e){return function(r,n){e(r,n,t)}},eb=function(t){function e(e,r,n,o,i,a,c,u,s,l,f){return t.call(this,{id:e,type:r,isOnsitePage:n,context:o,reporterInfo:i,ttqOptions:a,reportService:c,plugins:u,rules:s,pixel_rules:l,options:f})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ey(e,t);var r=e.prototype;return r.getInstance=function(){var t,e=this;if(this.pixelPromise)return this.pixelPromise;var r=(t=this.id,p()[t]||{});return(0,l.cH)()||r&&r.info?(this.loaded=!0,this.pixelPromise=Promise.resolve(this)):(this.pixelPromise=new Promise(function(t,r){var n=J();tJ((0,h.hi)(e.id,(null==n?void 0:n.hostname)||"")).then(function(){e.loaded=!0,t(e)}).catch(function(t){e.pixelPromise=null,r(t)})}),this.pixelPromise)},r.setCookieBasedSession=function(e){if(!tF(this.reporterInfo,this.ttqOptions))return t.prototype.setCookieBasedSession.call(this,e);var r=ei(this.pixelCode,e,this.ttqOptions);return t.prototype.setCookieBasedSession.call(this,r)},r.track=function(e,r,n,o,i){if(void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=ar.TRACK),void 0===i&&(i=ao.defaultReport),(0,ty.FI)(r)||(r={description:JSON.stringify(r)}),n&&n.pixel_code&&this.getReporterId()!==n.pixel_code)return Promise.resolve(null);if(tF(this.reporterInfo,this.ttqOptions)){var a=tH(document.cookie);Object.assign(n,{pixelSession:this.setCookieBasedSession(a[this.getReporterId()]),pageSession:this.context.setPageCookieBasedSession(a[""])})}return t.prototype.track.call(this,e,r,n,o,i)},e}(eg);function ew(t,e){return(ew=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eO=function(t){function e(){return t.apply(this,arguments)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ew(e,t);var r=e.prototype;return r.getInstance=function(){return this.pixelPromise=Promise.resolve(this),this.pixelPromise},r.track=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),v(this.getReporterId(),"track",[t,e,r]),Promise.resolve(null)},e}(eb=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),eE(0,H(E.M.ID)),eE(1,H(E.M.Type)),eE(2,H(E.M.IsOnsitePage)),eE(3,H(y.D.CONTEXT)),eE(4,H(E.M.Info)),eE(5,H(y.D.TTQ_GLOBAL_OPTIONS)),eE(6,H(y.D.REPORT_SERVICE)),eE(7,H(E.M.Plugins)),eE(7,V()),eE(8,H(E.M.Rules)),eE(8,V()),eE(9,H(E.M.PixelRules)),eE(9,V()),eE(10,H(E.M.Options)),eE(10,V())],eb));function eI(){eI=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eT(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function eS(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){eT(i,n,o,a,c,"next",t)}function c(t){eT(i,n,o,a,c,"throw",t)}a(void 0)})}}function eR(t,e){return(eR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eN=function(t,e){return function(r,n){e(r,n,t)}},eA=function(t){function e(e,r,n,o,i,a,c,s,l,f,h,p,d,v,_,m,g,y,E,b,w,O,I,T,S,R,N,A){(L=t.call(this,e,i,f,h)||this).context=e,L.env=l,L.reporters=r,L.globalTtqOption=p,L.cookieService=a,L.reportService=i,L.consentService=c,L.adService=n,L.appService=o,L.clickInteractionIdService=s,L.historyObserver=T,L.interactionObserver=S,L.autoAdvancedMatchingPlugin=v,L.callbackPlugin=_,L.identifyPlugin=m,L.monitorPlugin=d,L.shopifyPlugin=g,L.autoConfigPlugin=y,L.diagnosticsConsolePlugin=E,L.eventBuilderPlugin=b,L.pagedataPlugin=I,L.enrichIpv6Plugin=w,L.lpvPlugin=O,L.runtimeMeasurementPlugin=R,L.textTreeWalkerPlugin=N,L.cdpVisiterPlugin=A,L.eventEmitter=f,L.sensitiveRedactor=h,L.historyObserver&&L.useObserver(L.historyObserver),L.interactionObserver&&L.useObserver(L.interactionObserver),L.autoAdvancedMatchingPlugin&&L.usePlugin(L.autoAdvancedMatchingPlugin),L.callbackPlugin&&L.usePlugin(L.callbackPlugin),L.identifyPlugin&&L.usePlugin(L.identifyPlugin),L.monitorPlugin&&L.usePlugin(L.monitorPlugin),L.shopifyPlugin&&L.usePlugin(L.shopifyPlugin),L.autoConfigPlugin&&L.usePlugin(L.autoConfigPlugin),L.diagnosticsConsolePlugin&&L.usePlugin(L.diagnosticsConsolePlugin),L.eventBuilderPlugin&&L.usePlugin(L.eventBuilderPlugin),L.enrichIpv6Plugin&&L.usePlugin(L.enrichIpv6Plugin),L.lpvPlugin&&L.usePlugin(L.lpvPlugin),L.runtimeMeasurementPlugin&&L.usePlugin(L.runtimeMeasurementPlugin),L.textTreeWalkerPlugin&&L.usePlugin(L.textTreeWalkerPlugin),L.cdpVisiterPlugin&&L.usePlugin(L.cdpVisiterPlugin),L.sensitiveRedactor&&L.usePlugin(L.sensitiveRedactor),L.monitorPlugin&&(u.qe.info.forEach(function(t){var e;null==(e=L.monitorPlugin)||e.info(t.event,t.detail,t.withoutJSB,t.forceReport)}),u.qe.error.forEach(function(t){var e;null==(e=L.monitorPlugin)||e.error(t.event,t.err,t.detail,t.withoutJSB)}),u.qe.info=[],u.qe.error=[]),L.dispatch(i8.INIT_START),L.pagedataPlugin&&L.usePlugin(L.pagedataPlugin),L.onPageLoaded(),L.initLCPListener(),L.onPageLeave();var L,P=X(),x=P.url,C=P.referrer;return L.init(x,C),L.setPageInfo(x,C),L.dispatch(i8.INIT_END),L}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eR(e,t);var r,n=e.prototype;return n.initAdInfo=function(t,e){this.dispatch(i8.BEFORE_AD_INFO_INIT_START);var r=Z(q.dm);if(r)return void this.initAdCache(r);if((0,f.zP)()){var n=t_(t,e);n&&(n.creative_id&&n.log_extra||n.callback)&&(this.dispatch(i8.AD_INFO_INIT_START),$(q.dm,n),this.setAdInfo(n),this.initOffsiteAdInfo(n));return}this.initBaseAdInfo(t,e)},n.initAdCache=function(t){this.dispatch(i8.AD_INFO_INIT_START),t.ad_info_from="cache",t.ad_info_status="fulfilled(cache)",this.setAdInfo(t),this.initOffsiteAdInfo(t)},n.initBaseAdInfo=function(t,e){var r=this;this.adService.webBridgeService.jsbridge&&this.dispatch(i8.AD_INFO_INIT_START),this.reportService.pushPreposition(eS(eI().mark(function n(){var o;return eI().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,r.adService.getAdInfo(t,e);case 3:o=n.sent,r.context.setAdInfo(o),r.initOffsiteAdInfo(o),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(0),(0,u.vU)(s.O.INIT_ERROR,n.t0,{extJSON:{position:"initAdInfo"}});case 11:case"end":return n.stop()}},n,null,[[0,8]])}))())},n.initOffsiteAdInfo=function(t){var e=tg(t,function(t){(0,u.vU)(s.O.INIT_ERROR,t,{extJSON:{position:"handleAdInfoOfficial"}})});this.context.setOffsiteAdInfo(e);var r=tm(t,this.env);this.context.setEnableAdTracking(r),this.dispatch(i8.AD_INFO_INIT_END,{extJSON:{enabledAdTracking:r}})},n.initAppInfo=function(t,e){var r=this,n=Z(q.Cd);if(n)return void this.context.setAppInfo(n);this.reportService.pushPreposition(eS(eI().mark(function n(){var o;return eI().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,r.initBaseAppInfo(t,e);case 2:return o=n.sent,n.abrupt("return",o);case 4:case"end":return n.stop()}},n)}))())},r=eS(eI().mark(function t(e,r){var n;return eI().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.appService.getAppInfo(e,r);case 2:return n=t.sent,this.context.setAppInfo(n),t.abrupt("return",n);case 5:case"end":return t.stop()}},t,this)})),n.initBaseAppInfo=function(t,e){return r.apply(this,arguments)},n.initTestId=function(t,e){if(!this.context.getTestID()){var r=tM(t,tR("tt_test_id"),e);this.context.setTestID(r)}},n.initUserInfo=function(){this.setCookieInfo();var t=this.context;if(er()){var e=Z(q.Y0);e&&t.setUserInfoWithoutIdentifyPlugin({auto_zip_code:e})}},n.initLocalServiceInfo=function(){var t,e,r=Z(q.RC);if(r)return void this.context.setUserInfoWithoutIdentifyPlugin(((t={})[q.RC]=r,t));var n=X(),o=n.url,i=n.referrer,a=W(z(this.globalTtqOption),o,i);a&&($(q.RC,a),this.context.setUserInfoWithoutIdentifyPlugin(((e={})[q.RC]=a,e)))},n.setPageIndex=function(t){t&&tA(t)},n.instance=function(t){this.beforeAPIExecution();var e=this.getReporter(t);return e||new eO(t,i5.PIXEL_CODE,{value:!1},this.context,{pixelCode:t},{},{})},n.instances=function(){return this.beforeAPIExecution(),this.reporters},n.page=function(e){this.beforeAPIExecution();var r=X(),n=r.url,o=r.referrer;t.prototype.page.call(this,Object.assign({url:(null==e?void 0:e.page)||n,referrer:(null==e?void 0:e.referrer)||o},e))},n.track=function(e,r,n){void 0===r&&(r={}),void 0===n&&(n={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var o={taskName:window.ttq._pf_tn,functionName:"web_track_handler",start:performance.now()}}catch(t){}this.beforeAPIExecution();var i=n.pixel_code;if(void 0===i&&t.prototype.track.call(this,e,r,n),void 0!==i){var a=this.instance(i);a instanceof eO||a.track(e,r,n)}try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o))}catch(t){}},n.identify=function(e,r){this.beforeAPIExecution(),t.prototype.identify.call(this,e,r)},n.setAdInfo=function(t){this.context.setAdInfo(t)},n.enableFirstPartyCookie=function(t){this.cookieService.enableFirstPartyCookie(t),t&&this.setCookieInfo()},n.enableCookie=function(){this.cookieService.enableFirstPartyCookie(!0),this.setCookieInfo(),this.cookieService.enableCookie()},n.disableCookie=function(){this.cookieService.disableCookie(),this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:void 0}),this.disablePangleCookie()},n.holdConsent=function(){this.consentService.setConsentMode(tj._R.HOLD)},n.revokeConsent=function(){this.consentService.setConsentMode(tj._R.REVOKE),this.autoConfigPlugin&&this.autoConfigPlugin.reportRevokeConsent()},n.grantConsent=function(){this.consentService.setConsentMode(tj._R.GRANT)},n.disablePangleCookie=function(){},n.setAnonymousId=function(t){this.cookieService.setAnonymousId(t),this.initUserInfo()},n.resetCookieExpires=function(){this.cookieService.resetExpires()},n.setCookieInfo=function(){if(this.cookieService.canUseCookie()){var t=this.cookieService.getAnonymousId();t&&this.context.setUserInfoWithoutIdentifyPlugin({anonymous_id:t})}},n.initLCPListener=function(){var t,e=this;(void 0===t&&(t=5e3),new Promise(function(e){var r,n,o=!1,i="timeout",a=function(){if(!o){o=!0;try{null==n||n.disconnect()}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{extJSON:{position:"waitForLCPOrTimeoutDetailed"}})}clearTimeout(c),e({reason:i,lcpTime:r})}},c=setTimeout(a,t);if("undefined"==typeof PerformanceObserver){i="unsupported",a();return}try{n=new PerformanceObserver(function(t){var e=t.getEntries();e.length>0&&(r=e[e.length-1].startTime,i="lcp",a())}),n.observe({type:"largest-contentful-paint",buffered:!0})}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{extJSON:{position:"waitForLCPOrTimeoutDetailedCatch"}}),i="unsupported",a()}})).then(function(t){"lcp"===t.reason&&void 0!==t.lcpTime&&((0,_.Kn)(m.Cr.LCP),e.dispatch(i8.PAGE_LCP,{startTime:t.lcpTime,value:t.lcpTime,reason:t.reason}))}).catch(function(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{extJSON:{position:"initLCPListener"}})})},n.onPageLoaded=function(){var t=this;window.addEventListener("load",function(){t.dispatch(i8.PAGE_DID_LOAD)},{once:!0})},n.onPageLeave=function(){var t=this,e=(0,h.IH)(function(){var e=(0,th.u3)();t.dispatch(i8.PAGE_WILL_LEAVE,e),t.consentService.updateCache()});document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()}),"onpagehide"in window&&window.addEventListener("pagehide",function(){e()}),window.addEventListener("beforeunload",function(){return e},{once:!0})},n.beforeAPIExecution=function(){try{var t,e;t=this.context,X().url===t.getPageInfo().url||this.setPageInfo(X().url),e=this.context,tR(q.qC)===e.getUserInfo().anonymous_id||en(this.context)}catch(t){(0,u.vU)(s.O.API_ERROR,t,{extJSON:{position:"beforeAPIExecution"}})}},n.loadPixel=function(t,e){if(t){if(this.reporters.find(function(e){return e.getReporterId()===t}))return void(0,u.ZK)(i7.DUPLICATE_PIXEL_CODE);(0,l.Ie)().load(t,e||{})}},e}(tW),eL=eA=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),eN(0,H(y.D.CONTEXT)),eN(1,H(y.D.TTQ_REPORTERS)),eN(2,H(y.D.AD_SERVICE)),eN(3,H(y.D.APP_SERVICE)),eN(4,H(y.D.REPORT_SERVICE)),eN(5,H(y.D.COOKIE_SERVICE)),eN(6,H(y.D.CONSENT_SERVICE)),eN(7,H(y.D.INTER_ID_SERVICE)),eN(8,H(y.D.ENV)),eN(9,H(y.D.EVENT_EMITTER)),eN(10,H(y.D.SENSITIVE_REDACTOR)),eN(11,H(y.D.TTQ_GLOBAL_OPTIONS)),eN(12,H(y.D.MONITOR_PLUGIN)),eN(12,V()),eN(13,H(y.D.AUTO_ADVANCED_MATCHING_PLUGIN)),eN(13,V()),eN(14,H(y.D.CALLBACK_PLUGIN)),eN(14,V()),eN(15,H(y.D.IDENTIFY_PLUGIN)),eN(15,V()),eN(16,H(y.D.SHOPIFY_PLUGIN)),eN(16,V()),eN(17,H(y.D.AUTO_CONFIG_PLUGIN)),eN(17,V()),eN(18,H(y.D.DIAGNOSTICS_CONSOLE_PLUGIN)),eN(18,V()),eN(19,H(y.D.EVENT_BUILDER_PLUGIN)),eN(19,V()),eN(20,H(y.D.ENRICH_IPV6_PLUGIN)),eN(20,V()),eN(21,H(y.D.LPV_PLUGIN)),eN(21,V()),eN(22,H(y.D.PAGEDATA_PLUGIN)),eN(22,V()),eN(23,H(y.D.HISTORY_OBSERVER)),eN(23,V()),eN(24,H(y.D.INTERACTION_OBSERVER)),eN(24,V()),eN(25,H(y.D.RUNTIME_MEASUREMENT_PLUGIN)),eN(25,V()),eN(26,H(y.D.TEXT_TREE_WALKER_PLUGIN)),eN(26,V()),eN(27,H(y.D.CDP_VISITER_PLUGIN)),eN(27,V())],eA),eP=r(118);function ex(){return(ex=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G()],eC);var eM=function(t,e){return function(r,n){e(r,n,t)}},ej={eb_email:"auto_email",eb_phone_number:"auto_phone_number"},eU=function(t){function e(e,r,n,o,i,a){var c;return(c=t.call(this,e,o)||this).setSignalType(a||g.S.OFFSITE),c.pageSign={sessionId:"",pageId:"",variationId:"",vids:"",pageIndex:{main:-1,sub:-1,index:-1}},c.legacy=n.legacy||[],c.variationId=n.variation_id||"",c.vids=n.vids||"",c.serverUniqueId=n.server_unqiue_id||"",c.ttqOptions=n,c.reportService=r,c.initPageSign(),(0,f.XA)(i)&&(0,f.gn)()&&(c.enableAdTracking=!1),c.data=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(c),c}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,eD(e,t);var r=e.prototype;return r.getSessionIdFromCache=function(){var t=null;try{t=JSON.parse(sessionStorage.getItem(q.Bp)||"")}catch(t){}return t},r.setSessionIdToCache=function(t){$(q.Bp,t)},r.getVariationId=function(){return this.variationId},r.getVids=function(){return this.vids},r.isLegacyPixel=function(t){return(0,l.FH)(t,this.legacy)},r.assignPageInfo=function(t){Object.assign(this.pageInfo,t)},r.mergeACPs=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=[]);var r=t.slice();return e.forEach(function(t){var e=r.findIndex(function(e){return e.source===t.source});e>-1?r[e]=t:r.push(t)}),r},r.getSessionIndex=function(){var t={main:-1,sub:-1,index:-1};try{var e=JSON.parse(sessionStorage.getItem(q.AU)||"{}");if(e)return Object.assign({},t,e)}catch(t){}return t},r.setUserInfo=function(t,e){var r=this;void 0===t&&(t={});var n=null==e?void 0:e.reporterId,o=null==e?void 0:e.trigger_source;if(0!==Object.keys(t).length){var i={};Object.entries(t).forEach(function(t){var e,o,a,c=t[0],u=t[1];if(u){if(r.userInfoFieldAllowlist[c]||(r.userInfoFieldAllowlist[c]=[]),n?null==(e=r.userInfoFieldAllowlist[c])||e.push(n):null==(o=r.userInfoFieldAllowlist[c])||o.push("all"),c===eP.Sk)return void r.setUserInfoWithoutIdentifyPlugin(((a={})[eP.Sk]=String(u),a));i[c]=String(u).trim()}});var a=(0,l.Ie)(),c=null==a?void 0:a.getPlugin("Identify");c&&this.reportService.pushPreposition(c.handleUserProperties(i,t,o).then(function(t){void 0===t&&(t={});try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var o={taskName:window.ttq._pf_tn||"identify_after_encryption",functionName:window.ttq._pf_tn&&"identify_after_encryption",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_after_encryption")}}catch(t){}var a=t,u=a.userProperties,s=a.userDataFormat,l=a.userDataFormatV2;if(u){var f=1===Object.keys(u).filter(function(t){return"trigger_source"!==t}).length&&Object.prototype.hasOwnProperty.call(u,"auto_zip_code");t.acp&&t.acp.length>0&&(u.acp=r.mergeACPs(r.userInfo.acp,t.acp)),Object.assign(r.userInfo,u),u.auto_zip_code&&$(q.Y0,u.auto_zip_code);var h=r.getUserFormatInfo()||{},p=r.getUserFormatInfoV2()||{},d=r.getSignalDiagnosticLabels()||{};if(r.setUserFormatInfo(Object.assign({},h,s)),r.setUserFormatInfoV2(Object.assign({},p,l)),r.setSignalDiagnosticLabels(Object.assign({},d,t.identifierLabel||{})),f)return;var v=Object.keys(r.userInfo),_=v.some(function(t){return"auto_email"===t||"auto_phone_number"===t});if(0===v.length||1===Object.keys(i).length&&Object.keys(i).includes("external_id"))return;var m=c.reporters[0];if(n)m=c.reporters.find(function(t){return t.getReporterId()===n});else if(_||v.some(function(t){return ej[t]})){for(var g,y,E=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return ek(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ek(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(v);!(y=E()).done&&"break"!==function(){var t=y.value,e=ej[t]||t,r=c.reporters.find(function(t){var r,n;return null==(n=null==(r=null==t?void 0:t.plugins)?void 0:r.AutoAdvancedMatching)?void 0:n[e]});if(r)return g=r,"break"}(););g&&(m=g)}else m=c.reporters.find(function(t){if(Object.keys(t.getUserInfo(tj.Ts.Manual)).length)return!0});var b=m?Object.keys(Object.assign({},m.getUserInfo(tj.Ts.Manual),m.getUserInfo(tj.Ts.Auto),m.getUserInfo(tj.Ts.EBManual))):[];m&&b.length&&m.track("EnrichAM",e||{},{},ar.TRACK)}try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o),"identify_after_encryption"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}}).catch(function(t){(0,u.vU)(s.O.API_ERROR,t,{extJSON:{api:"identify"}})}))}},r.initPageSign=function(){var t=this.getSessionIdFromCache();null===t&&(t=(0,h.LT)(this.serverUniqueId),this.setSessionIdToCache(t));var e=this.getPageId((0,h.eD)(t)),r=this.getVariationId(),n=this.getSessionIndex(),o=tO();n.main++,this.pageSign={sessionId:t,pageId:e,variationId:r,pageIndex:n,etldPlusOne:o}},r.setPageCookieBasedSession=function(e,r){void 0===r&&(r=ae.ORIGIN_TRIGGER);var n=ei("",e,this.ttqOptions,r);return t.prototype.setPageCookieBasedSession.call(this,n)},e}(eC);eU=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),eM(0,H(E.M.WebLibraryInfo)),eM(1,H(y.D.REPORT_SERVICE)),eM(2,H(y.D.TTQ_GLOBAL_OPTIONS)),eM(3,H(y.D.EVENT_EMITTER)),eM(4,H(y.D.ENV)),eM(4,V()),eM(5,H(E.M.SignalType)),eM(5,V())],eU);var eF=String.fromCharCode.bind(String),eG=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),eH=function(t){for(var e,r,n,o,i="",a=t.length%3,c=0;c255||(n=t.charCodeAt(c++))>255||(o=t.charCodeAt(c++))>255)throw TypeError("invalid character found");i+=eG[(e=r<<16|n<<8|o)>>18&63]+eG[e>>12&63]+eG[e>>6&63]+eG[63&e]}return a?i.slice(0,a-3)+"===".substring(a):i},eV=function(t){if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?eF(192|e>>>6)+eF(128|63&e):eF(224|e>>>12&15)+eF(128|e>>>6&63)+eF(128|63&e)}var r=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return eF(240|r>>>18&7)+eF(128|r>>>12&63)+eF(128|r>>>6&63)+eF(128|63&r)},eq=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,eB=function(t){return eH(JSON.stringify(t).replace(eq,eV)).replace(/=/g,"").replace(/[+\/]/g,function(t){return"+"===t?"-":"_"})};function eK(){eK=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eW(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var eY=function(){function t(t,e,r){this.httpService=t,this.bridgeService=e,this.reportPreTasks=r}var e,r,n=t.prototype;return n.pushPreposition=function(t){this.reportPreTasks.push(t)},e=eK().mark(function t(e,r,n,o){return eK().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve());case 1:case"end":return t.stop()}},t)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){eW(i,n,o,a,c,"next",t)}function c(t){eW(i,n,o,a,c,"throw",t)}a(void 0)})},n.report=function(t,e,n,o){return r.apply(this,arguments)},t}();eY=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G()],eY);var eX=function(t,e){var r=new URL(t);return Object.keys(e).forEach(function(t){var n=e[t].toJSON?e[t].toJSON():String(e[t]);r.searchParams.set(t,n)}),r.toString()},eJ=function(t){var e=Array(t.length),r=0;return new Promise(function(n,o){for(var i=function(o){var i=t[o];i&&"function"==typeof i.then?i.then(function(i){e[o]={status:"fulfilled",value:i},++r===t.length&&n(e)}).catch(function(i){e[o]={status:"rejected",reason:i},++r===t.length&&n(e)}):(e[o]={status:"fulfilled",value:i},++r===t.length&&n(e))},a=0;a=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function eQ(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function e$(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){eQ(i,n,o,a,c,"next",t)}function c(t){eQ(i,n,o,a,c,"throw",t)}a(void 0)})}}function e0(t,e){return(e0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var e1=function(t,e){return function(r,n){e(r,n,t)}},e2=function(t){function e(e,r,n,o){var i;return(i=t.call(this,e,r,new ez)||this).supportSendAnalyticsEvent=!0,i.hasReportedEAConfig=!1,i.consentService=n,i.consentService.on(m.IM.QUEUE,function(t){t.forEach(function(t){var e=t.url,r=t.data,n=t.type;i.report(e,r,n,ai.P0)})}),i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,e0(e,t);var r,n,o,i=e.prototype;return r=e$(eZ().mark(function t(e,r,n){var o,i,a,c,l,p,d;return eZ().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.bridgeService.jsbridge){t.next=2;break}return t.abrupt("return");case 2:return p=!!(l=r).context&&(null==(i=null==(o=l.context)?void 0:o.ad)?void 0:i.ad_info_status)==="timeout",d={},t.prev=5,t.next=8,this.bridgeService.send(l,p);case 8:if(!(!(d=t.sent)||1!==d.code)){t.next=11;break}throw Error("[fetch bridge] sendLog error: code "+(d&&d.code)+", data: "+(d&&JSON.stringify(d)));case 11:return(0,h.WZ)(l.event)&&(0,u.um)(s.O.JSB_SEND,{pixelCode:null==(a=l.context.pixel)?void 0:a.code,app_name:(0,f.bp)()?"ultralite":"",extJSON:{event:l.event,event_id:l.event_id,need_inject_ad_info:p}}),t.abrupt("return",d);case 15:t.prev=15,t.t0=t.catch(5),(0,h.WZ)(l.event)&&(0,u.vU)(s.O.JSB_ERROR,t.t0,{pixelCode:null==(c=l.context.pixel)?void 0:c.code,custom_name:"sendReportData",custom_enum:d&&d.code?""+d.code:"non",app_name:(0,f.PO)()||"",extJSON:{position:"sendReportData"}}),(0,f.bp)()&&(0,f.Dt)()&&this.sendHttpReport(e,l,n);case 19:case"end":return t.stop()}},t,this,[[5,15]])})),i.send=function(t,e,n){return r.apply(this,arguments)},n=e$(eZ().mark(function t(e,r,n,o,i){var a;return eZ().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===o&&(o=!0),!((0,h.WZ)(r.event)&&(0,f.b)("75804114"))){t.next=6;break}this.httpService.sendByImage(e,{analytics_message:n},!0),t.next=10;break;case 6:return t.next=8,this.httpService.send(e,r,i);case 8:t.sent||this.httpService.sendByImage(e,{analytics_message:n});case 10:o&&(0,u.um)(s.O.HTTP_SEND,{pixelCode:null==(a=r.context.pixel)?void 0:a.code,extJSON:{event:r.event,event_id:r.event_id}});case 11:case"end":return t.stop()}},t,this)})),i.sendHttpReport=function(t,e,r,o,i){return n.apply(this,arguments)},i.beforeReport=function(t,e,r){void 0===r&&(r=ao.defaultReport);var n,o=this.consentService.getConsentMode();return o===tj._R.REVOKE?(null==(n=null==e?void 0:e.auto_collected_properties)?void 0:n.page_trigger)==="RevokeConsent":o!==tj._R.HOLD||(this.consentService.cacheReportTask(t,e,r),!1)},o=e$(eZ().mark(function t(e,r,n,o){var i,a,c,l;return eZ().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=ao.defaultReport),void 0===o&&(o=ai.P0),o===ai.P0){t.next=8;break}return t.next=5,(0,h._v)(0);case 5:return t.next=7,this.report(e,r,n,ai.P0);case 7:case 16:return t.abrupt("return",t.sent);case 8:if(this.beforeReport(e,r,n)){t.next=11;break}return t.abrupt("return");case 11:if(this.bridgeService.jsbridge&&this.notifyIABKeyEvent(r),i=eB(r),!(n===ao.defaultReport&&this.bridgeService.jsbridge)){t.next=17;break}return t.next=16,this.send(e,r,i);case 17:if(!(n===ao.httpReport&&this.bridgeService.jsbridge&&(0,f.XA)(this.env)&&!(0,f.NC)()&&this.supportSendAnalyticsEvent)){t.next=36;break}return a=e,t.prev=19,a=new URL(e).pathname,t.next=23,this.bridgeService.sendAnalyticsEvent({path:a,method:"POST",data:r});case 23:if(l=Error("sendAnalyticsEvent not support: code "+(c=t.sent)+", path: "+a+", data: "+JSON.stringify(r)),null!=c&&-2!==c){t.next=28;break}throw this.supportSendAnalyticsEvent=!1,l;case 28:if(1!==c){t.next=30;break}return t.abrupt("return");case 30:throw l;case 33:t.prev=33,t.t0=t.catch(19),(0,u.vU)(s.O.CUSTOM_ERROR,t.t0,{custom_name:"sendAnalyticsEvent",custom_enum:String(c)},!0);case 36:this.sendHttpReport(e,r,i,!!((0,h.WZ)(r.event)&&(0,h.Pm)(r)),r.action?3:void 0);case 37:case"end":return t.stop()}},t,this,[[19,33]])})),i.report=function(t,e,r,n){return o.apply(this,arguments)},i.notifyIABKeyEvent=function(t){var e,r,n,o=function(){try{var t=function(){try{var t,e=(0,l.E9)(),r=null==e||null==(t=e.__globalprops)?void 0:t.getGlobalProps();if(!r)return{};return JSON.parse(r)||{}}catch(t){return{}}}(),e=null==t?void 0:t.ea_config;if(!e)return{};return"string"==typeof e?JSON.parse(e):e}catch(t){return{}}}();if(!o.ea_event&&!(null==(e=o.high_intent_event)?void 0:e.length))return;this.reportEAConfigOnce(o);var i=(0,h.iE)(t)?t.custom_enum:t.event;if("string"==typeof i&&i){var a=t3[i]||i,c=t2[a];if(null==c||!c.skipIAB){var u=+(null!=(r=o.high_intent_event)&&!!r.includes(i)),s=t6[a]||a,f=+((null==(n=o.ea_event)?void 0:n.toLowerCase())===s.toLowerCase());(u||f)&&this.bridgeService.sendIABKeyEvent({isEAEvent:f,isHighIntentEvent:u,eventType:f?a:i}).catch(function(){})}}},i.reportEAConfigOnce=function(t){this.hasReportedEAConfig||(this.hasReportedEAConfig=!0,(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"ea_config",custom_enum:"init",extJSON:{message:JSON.stringify(t)}}))},i.reportFL=function(t){this.bridgeService.jsbridge&&this.bridgeService.updateWebFlData(t)},e}(eY);function e3(){e3=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function e6(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}e2=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),e1(0,H(y.D.HTTP_SERVICE)),e1(1,H(y.D.BRIDGE_SERVICE)),e1(2,H(y.D.CONSENT_SERVICE)),e1(3,H(y.D.ENV)),e1(3,V())],e2);var e5=function(){function t(t){this.webBridgeService=t}var e,r,n=t.prototype;return e=e3().mark(function t(e,r){var n,o,i,a;return e3().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.getAdInfoFromURL(e,r),!this.webBridgeService.jsbridge){t.next=7;break}return t.next=4,this.webBridgeService.getAdInfo();case 4:t.t0=t.sent,t.next=8;break;case 7:t.t0={};case 8:return o=t.t0,(i=Object.assign({},n,o)).callback&&(i.callback=(a=n.callback)&&td(a).clickId===td(i.callback).clickId?a:tv(i.callback)),i&&(i.creative_id&&i.log_extra||i.callback)&&$(q.dm,i),t.abrupt("return",i);case 13:case"end":return t.stop()}},t,this)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){e6(i,n,o,a,c,"next",t)}function c(t){e6(i,n,o,a,c,"throw",t)}a(void 0)})},n.getAdInfo=function(t,e){return r.apply(this,arguments)},n.getAdInfoFromURL=function(t,e){return t_(t,e)},t}();function e8(){e8=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function e4(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}e5=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),(iM=H(y.D.BRIDGE_SERVICE),function(t,e){iM(t,e,0)})],e5);var e9=function(){function t(t){this.webBridgeService=t}var e,r,n=t.prototype;return e=e8().mark(function t(e,r){var n,o,i,a;return e8().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((n=this.getAppInfoFromURL(e,r)).platform=(0,f.Xf)(),!(0,f.Dt)()){t.next=10;break}return t.next=5,(0,f.sH)();case 5:i=(o=t.sent).model,a=o.platformVersion,n.device_model=i,n.android_version=a;case 10:return(0,ty.Qr)(n)||$(q.Cd,n),t.abrupt("return",n);case 12:case"end":return t.stop()}},t,this)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){e4(i,n,o,a,c,"next",t)}function c(t){e4(i,n,o,a,c,"throw",t)}a(void 0)})},n.getAppInfo=function(t,e){return r.apply(this,arguments)},n.getAppInfoFromURL=function(t,e){try{var r=W(tf,t,e),n=r&&JSON.parse(r),o=n.device_id,i=n.uid;return{device_id:o,user_id:i}}catch(t){return{}}},t}();e9=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),(ij=H(y.D.BRIDGE_SERVICE),function(t,e){ij(t,e,0)})],e9);var e7="ad_analytics_msg";function rt(){rt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function re(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function rr(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){re(i,n,o,a,c,"next",t)}function c(t){re(i,n,o,a,c,"throw",t)}a(void 0)})}}var rn=function(t,e){return function(r,n){e(r,n,t)}},ro=function(){function t(t,e){this.env=t,(0,f.Z0)(this.env)&&(this.jsbridge=e),this.bridgeTimeout=400}var e,r,n,o,i,a,c,l,p=t.prototype;return e=rr(rt().mark(function t(){var e=this;return rt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=3;break}return(0,u.vU)(s.O.JSB_ERROR,Error("tt bridge error when getting ad info"),{extJSON:{position:"getAdInfo"}}),t.abrupt("return",Promise.resolve({}));case 3:return t.abrupt("return",new Promise(function(){var t=rr(rt().mark(function t(r){var n;return rt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.callAdInfo();case 3:(n=t.sent).ad_info_from="jsb",n.ad_info_status=n.ad_info_status||"fulfilled",r(n),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),r({}),(0,u.vU)(s.O.JSB_ERROR,t.t0,{extJSON:{position:"getAdInfo"}});case 13:case"end":return t.stop()}},t,null,[[0,9]])}));return function(e){return t.apply(this,arguments)}}()));case 4:case"end":return t.stop()}},t,this)})),p.getAdInfo=function(){return e.apply(this,arguments)},r=rr(rt().mark(function t(){var e,r;return rt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.call("adInfo",{},(0,f.zd)()?3500:5e3);case 3:if((e=t.sent).data){t.next=6;break}return t.abrupt("return",Promise.reject("adInfo no data"));case 6:return r={creative_id:e.data.cid,log_extra:e.data.log_extra},t.abrupt("return",r);case 10:if(t.prev=10,t.t0=t.catch(0),"JSBRIDGE TIMEOUT"!==t.t0){t.next=17;break}return(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"ad_info_init_timeout"}),t.abrupt("return",{ad_info_status:"timeout"});case 17:return(0,u.vU)(s.O.JSB_ERROR,t.t0,{extJSON:{position:"getAdInfo"}}),t.abrupt("return",{});case 19:case"end":return t.stop()}},t,this,[[0,10]])})),p.callAdInfo=function(){return r.apply(this,arguments)},n=rr(rt().mark(function t(){return rt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve({}));case 1:case"end":return t.stop()}},t)})),p.getAppInfo=function(){return n.apply(this,arguments)},o=rr(rt().mark(function t(e,r){var n,o,i,a,c,l,p,d,v,_,m,g;return rt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.jsbridge){t.next=2;break}return t.abrupt("return",Promise.resolve());case 2:return i=(null==(o=null==(n=null==e?void 0:e.context)?void 0:n.ad)?void 0:o.creative_id)||"0",a=eB(e),c=(0,h.Xu)(e),l={analytics_message:a,trackLogData:JSON.stringify(e),category:"ad_analytics_msg",tag:e7,label:c},(0,f.NC)()&&(l.is_ad_event=1),v={eventName:e7,labelName:c,value:i,extValue:"0",extJson:l},"insight_log_monitor"===c&&(0,f.z1)()?(d="x.reportAppLog",_={eventName:"insight_log_monitor",params:l},p=this.call("x.reportAppLog",_,this.bridgeTimeout)):(0,f.zP)()||(0,h.iE)(e)?(d="sendLog",p=this.call("sendLog",v,this.bridgeTimeout)):(0,f.XA)(this.env)?(0,f.gn)()&&r?(m={eventName:c,params:l},d="sendLogWithAdInfo",p=this.call("sendLogWithAdInfo",m,this.bridgeTimeout)):(d="sendLog",p=this.call("sendLog",v,this.bridgeTimeout)):(g={event_name:c,version:2,properties:l},d="track_event",p=this.call("track_event",g,400)),setTimeout(function(){(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"send_report_data",extJSON:{api_name:d}})}),t.abrupt("return",p);case 11:case"end":return t.stop()}},t,this)})),p.send=function(t,e){return o.apply(this,arguments)},i=rr(rt().mark(function t(e,r,n,o){var i=this;return rt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===r&&(r={}),void 0===n&&(n=400),void 0===o&&(o=!0),t.abrupt("return",new Promise(function(t,a){var c;if(!i.jsbridge){a("JSBRIDGE ERROR"),o&&(0,u.vU)(s.O.JSB_ERROR,Error("JSBRIDGE ERROR"),{extJSON:{position:"getCallPromise"}});return}n>0&&(c=window.setTimeout(function(){a("JSBRIDGE TIMEOUT"),o&&(0,u.vU)(s.O.JSB_ERROR,Error("JSBRIDGE TIMEOUT"),{extJSON:{position:"getCallPromise",method:e}})},n)),i.jsbridge&&i.jsbridge.call&&i.jsbridge.call(e,r,function(e){t(function(t,e){void 0===e&&(e=!0);var r={};try{if("string"==typeof t)r.data=JSON.parse(t);else if(t.code&&t.data&&t.ret?0:1)if(void 0!==t.code){var n=Object.assign({},t),o=n.code;r.code=o,delete n.code,n.data?r.data=n.data:r.data=n}else r.data=t;else(r=t).__data&&(r.data=r.__data)}catch(t){e&&(0,u.vU)(s.O.JSB_ERROR,t,{extJSON:{position:"getCallPromise bridge.call"}})}return r}(e,o)),window.clearTimeout(c)})}));case 4:case"end":return t.stop()}},t)})),p.call=function(t,e,r,n){return i.apply(this,arguments)},a=rr(rt().mark(function t(e){var r,n,o,i,a;return rt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.method,n=e.path,o=e.params,i=e.data,t.next=3,this.call("sendAnalyticsEvent",{method:r,path:n,params:o,data:i,header:{"Content-Type":"application/json"}},0,!1);case 3:return a=t.sent,t.abrupt("return",null==a?void 0:a.code);case 5:case"end":return t.stop()}},t,this)})),p.sendAnalyticsEvent=function(t){return a.apply(this,arguments)},c=rr(rt().mark(function t(e){return rt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!((0,f.XA)(this.env)&&(0,f.gn)())){t.next=2;break}return t.abrupt("return",this.call("updateFLLocalConv",e,this.bridgeTimeout));case 2:case"end":return t.stop()}},t,this)})),p.updateWebFlData=function(t){return c.apply(this,arguments)},l=rr(rt().mark(function t(e){var r,n;return rt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.call("sendIABKeyEvent",e,this.bridgeTimeout,!1);case 3:if(1===(n=null==(r=t.sent)?void 0:r.code)){t.next=7;break}throw Error("sendIABKeyEvent error: code "+n);case 7:return t.abrupt("return",n);case 10:return t.prev=10,t.t0=t.catch(0),(0,u.vU)(s.O.CUSTOM_ERROR,t.t0,{custom_name:"sendIABKeyEvent",custom_enum:"jsb_call",extJSON:{position:"sendIABKeyEvent"}}),t.abrupt("return",void 0);case 14:case"end":return t.stop()}},t,this,[[0,10]])})),p.sendIABKeyEvent=function(t){return l.apply(this,arguments)},t}();function ri(){ri=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ra(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}ro=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),rn(0,H(y.D.ENV)),rn(0,V()),rn(1,H(y.D.JS_BRIDGE)),rn(1,V())],ro);var rc=function(){function t(){}var e,r,n=t.prototype;return e=ri().mark(function t(e,r,n){var o;return ri().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=0),t.prev=1,!(!navigator||!navigator.sendBeacon)){t.next=4;break}return t.abrupt("return",!1);case 4:if(!(!(o=navigator.sendBeacon(e,JSON.stringify(r)))&&"number"==typeof n&&n>0)){t.next=10;break}return n--,t.next=9,(0,h._v)(200);case 9:return t.abrupt("return",this.send(e,r,n));case 10:return t.abrupt("return",o);case 13:return t.prev=13,t.t0=t.catch(1),t.abrupt("return",!1);case 16:case"end":return t.stop()}},t,this,[[1,13]])}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){ra(i,n,o,a,c,"next",t)}function c(t){ra(i,n,o,a,c,"throw",t)}a(void 0)})},n.send=function(t,e,n){return r.apply(this,arguments)},n.sendByImage=function(t,e,r,n){void 0===r&&(r=!1);var o=new Image;n&&(o.onerror=function(){n()}),r&&o.setAttribute("fetchpriority","high"),o.src=eX(t,e)},t}();function ru(){ru=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rs(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}rc=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G()],rc);var rl=function(){function t(t){this.cookieExpireOption=tw(t)}var e,r,n=t.prototype;return n.genCookieID=function(){return(0,h.d$)()},e=ru().mark(function t(){return ru().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return tN(q.ct,"1",this.cookieExpireOption),t.abrupt("return",tJ((0,h.TX)()));case 2:case"end":return t.stop()}},t,this)}),r=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(t){rs(i,n,o,a,c,"next",t)}function c(t){rs(i,n,o,a,c,"throw",t)}a(void 0)})},n.enableCookie=function(){return r.apply(this,arguments)},n.enableFirstPartyCookie=function(t){if(t){tN(q.ct,"1",this.cookieExpireOption);var e=this.getAnonymousId();this.setAnonymousId(e||this.genCookieID())}},n.disableCookie=function(){tN(q.ct,"0",this.cookieExpireOption),tN(q.qC,"",Object.assign(this.cookieExpireOption,{expires:-1})),tJ((0,h.X1)())},n.setAnonymousId=function(t){var e=this.getAnonymousId(),r=e||t;if(r){var n=r.split(".")[0],o=tC(r)||(e?void 0:(0,th.u3)());tN(q.qC,n,this.cookieExpireOption,o)}},n.getAnonymousId=function(){return tR(q.qC)||""},n.canUseCookie=function(){try{return"0"!==tR(q.ct)}catch(t){}return!1},n.resetExpires=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"resetExpires",start:performance.now()}}catch(t){}var e=tR(q.ct);e&&tN(q.ct,e,this.cookieExpireOption);var r=this.getAnonymousId();r&&this.setAnonymousId(r);try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},t}();function rf(t,e){return(rf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}rl=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),(iU=H(y.D.TTQ_GLOBAL_OPTIONS),function(t,e){iU(t,e,0)})],rl),(iF=al||(al={}))[iF.P0=4]="P0",iF[iF.P1=3]="P1",iF[iF.P2=2]="P2",iF[iF.P3=1]="P3";var rh="tt_hold_events",rp=function(t){function e(){var e;return e=t.apply(this,arguments)||this,e.consentMode=tj._R.UNKNOWN,e.queue=[],e.debounceUpdateCache=(0,h.Ds)(function(){e.updateCache()},200,function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)),e.handleHistoryQueue=(0,h.IH)(function(){var t=Z(rh);Array.isArray(t)&&(e.queue=e.queue.concat(t),e.changeQueueWithConsent())}),e}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rf(e,t);var r=e.prototype;return r.on=function(e,r){t.prototype.on.call(this,e,r,{}),this.handleHistoryQueue()},r.setConsentMode=function(t){this.consentMode=t,this.changeQueueWithConsent()},r.changeQueueWithConsent=function(){switch(this.consentMode){case tj._R.REVOKE:this.cleanQueue();break;case tj._R.GRANT:this.releaseQueue(),this.cleanQueue();case tj._R.HOLD:case tj._R.UNKNOWN:}},r.getConsentMode=function(){return this.consentMode},r.cacheReportTask=function(t,e,r){void 0===r&&(r=ao.defaultReport),this.queue.push({url:t,data:e,type:r}),this.debounceUpdateCache()},r.cleanQueue=function(){this.queue=[],Q(rh)},r.updateCache=function(){this.queue&&this.queue.length>0&&$(rh,this.queue)},r.releaseQueue=function(){var t=this;this.queue.sort(function(e,r){return t.getEventPriority(r.data)-t.getEventPriority(e.data)}),this.emit(m.IM.QUEUE,this.queue)},r.getEventPriority=function(t){return t.event&&t.event.length>0?al.P0:t.action&&t.action.length>0?al.P1:""===t.event?al.P2:al.P3},e}(t8);function rd(){return document.visibilityState}rp=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G()],rp),(iG=af||(af={})).CLICK="click",iG.SCROLL="scroll",iG.COOKIE_CHANGE="cookie_change",iG.PAGE_START="page_start",iG.URL_CHANGE="url_change",iG.SELF="self",iG.PIXEL_INIT="pixel_init",iG.PAGE_SHOW="page_show";var rv=function(t,e){return function(r,n){e(r,n,t)}},r_=function(){function t(t,e){this.clickContext={type:"click",clickX:0,clickY:0,last_inter_relative_ts:0,seq:0},this.scrollContext={type:"scroll",scrollY:0,last_inter_relative_ts:0,seq:0},this.sessionLoadTS=0,this.last_page_start_relative_ts=0,this.last_pixel_init_relative_ts=0,this.inter_id="",this.INTER_ID_SEPARATOR="::",this.documentVisibleStateCode=0,this.hasInit=!1,this.eventEmitter=t,this.webContext=e,function(){try{var t=S(),e=(0,l.Ie)();return Object.values(t).some(function(t){var r,n,o;return(null==(r=t.info)?void 0:r.firstPartyCookieEnabled)&&(null==(n=null==e?void 0:e._csid_config)?void 0:n.enable)&&(null==(o=t.info)?void 0:o.csidEnabled)!==!1})}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"hasPixelEnabledSessionCookie"}),!1}}()&&!1===this.hasInit&&(this.hasInit=!0,this.init())}var e=t.prototype;return e.init=function(){this.subscribeEvents(),this.listenEvents()},e.subscribeEvents=function(){this.subscribePixelInitEvent(),this.subscribeSessionCookieChangeEvent(),this.subscribeURLChangeEvent(),this.subscribeClickEvent(),this.subscribeScrollEvent()},e.listenEvents=function(){this.listenPageShowEvent()},e.initInterIdFromSessionCookie=function(t){try{var e=t.inter_id.split("::"),r=e[0].split(".");r[0],r[1],r[2];var n=e[1],o=e[2];this.updateSessionLoadTS(t,!1),this.updatePageStartTS(af.PAGE_START,!1),this.updatePixelInitTS(!1),this.updateClickContext(function(t){try{var e=t.split(".");if(4!==e.length)return;var r=e[0],n=e[1],o=e[2],i=e[3];return{type:"click",clickX:Number(o),clickY:Number(i),last_inter_relative_ts:Number(r),seq:Number(n)}}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"getClickContextFromString"})}}(n),!1),this.updateScrollContext(function(t){try{var e=t.split(".");if(3!==e.length)return;var r=e[0],n=e[1],o=e[2];return{type:"scroll",scrollY:Number(o),last_inter_relative_ts:Number(r),seq:Number(n)}}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"getScrollContextFromString"})}}(o),!0)}catch(e){(0,u.vU)(s.O.CUSTOM_ERROR,e,{custom_name:"WebInterIdService",custom_enum:"initInterIdFromSessionCookie",extJSON:{message:""+t.inter_id}})}},e.generateInterId=function(t){try{return this.inter_id=""+this.assemblyPageContext()+this.INTER_ID_SEPARATOR+this.assemblyClickContext(this.clickContext)+this.INTER_ID_SEPARATOR+this.assemblyScrollContext(this.scrollContext),this.inter_id}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"generateInterId"}),""}},e.updateClickContext=function(t,e){void 0===e&&(e=!0),this.clickContext=t,e&&this.setInterIdInPageSessionCookie(this.getInterId())},e.updateScrollContext=function(t,e){var r=this;void 0===e&&(e=!0),this.scrollContext=t,this.throttleScrollSetInCookieHandler||(this.throttleScrollSetInCookieHandler=(0,ty.P2)(function(){r.setInterIdInPageSessionCookie(r.getInterId())},1e3,{trailing:!0})),e&&this.throttleScrollSetInCookieHandler()},e.updatePageStartTS=function(t,e){void 0===e&&(e=!0);var r=this.getSessionLoadTS();if(0===r&&t===af.PAGE_START){var n=parseInt(performance.now().toString(),10);this.last_page_start_relative_ts=0-n}else if(0!==r&&t===af.PAGE_START){var o=parseInt(performance.now().toString(),10);this.last_page_start_relative_ts=(0,th.u3)()-o-r}else this.last_page_start_relative_ts=(0,th.u3)()-r;e&&this.setInterIdInPageSessionCookie(this.getInterId())},e.updateSessionLoadTS=function(t,e){void 0===e&&(e=!0);var r=t.sessionId.split("::")[0],n=this.getSessionLoadTS();n!==Number(r)&&(0===n&&this.updatePageStartTS(af.PAGE_START,!1),this.setSessionLoadTS(r?Number(r):0),e&&this.setInterIdInPageSessionCookie(this.getInterId()))},e.updatePixelInitTS=function(t){void 0===t&&(t=!0);var e=this.getSessionLoadTS();0===e?this.last_pixel_init_relative_ts=0:this.last_pixel_init_relative_ts=(0,th.u3)()-e,t&&this.setInterIdInPageSessionCookie(this.getInterId())},e.assemblyClickContext=function(t){return t.last_inter_relative_ts+"."+t.seq+"."+t.clickX+"."+t.clickY},e.assemblyScrollContext=function(t){return t.last_inter_relative_ts+"."+t.seq+"."+t.scrollY},e.assemblyPageContext=function(){return"visible"===rd()?this.documentVisibleStateCode=1:"prerender"===rd()?this.documentVisibleStateCode=-1:this.documentVisibleStateCode=0,this.documentVisibleStateCode+"."+this.last_page_start_relative_ts+"."+this.last_pixel_init_relative_ts},e.subscribeClickEvent=function(){var t=this;this.eventEmitter.on(m.PG.CLICK,function(e){var r=t.getSessionLoadTS(),n=function(t,e,r){var n,o;try{if(!1===t.isTrusted)return;return{type:"click",clickX:null!=(n=parseInt(t.pageX.toString(),10))?n:0,clickY:null!=(o=parseInt(t.pageY.toString(),10))?o:0,last_inter_relative_ts:(0,th.u3)()-r,seq:e.seq+1}}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"getClickContextFromEvent"})}}(e,t.clickContext,r);n&&t.updateClickContext(n)},{})},e.subscribeScrollEvent=function(){var t=this;(0,_.Oo)(m.PG.SCROLL,function(e){var r=t.getSessionLoadTS(),n=function(t,e,r){var n;try{if(!1===t.isTrusted)return;return{type:"scroll",scrollY:null!=(n=parseInt(window.scrollY.toString(),10))?n:0,last_inter_relative_ts:(0,th.u3)()-r,seq:e.seq+1}}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"WebInterIdService",custom_enum:"updateScrollContext",extJSON:{message:""+t.type}})}}(e,t.scrollContext,r);n&&t.updateScrollContext(n)},{throttle:!0,interval:200},{observerType:m.PG.SCROLL,pluginName:"WebInterIdService",target:window,environment:"window",listenEventTypes:[m.PG.SCROLL],mode:"append"})},e.subscribeSessionCookieChangeEvent=function(){var t=this;this.eventEmitter.on(m.Cr.COOKIE_TTCSID_CHANGE,function(e){var r=t.getSessionLoadTS();if(0===r&&0===t.clickContext.seq&&0===t.scrollContext.seq&&e.inter_id)return void t.initInterIdFromSessionCookie(e);t.updateSessionLoadTS(e,0===r)},{})},e.subscribePixelInitEvent=function(){var t=this;this.eventEmitter.on(m.Cr.HANDLE_CACHE,function(){t.updatePixelInitTS(!1)},{})},e.subscribeURLChangeEvent=function(){var t=this;this.eventEmitter.on(m.Cr.URL_CHANGE,function(e,r){t.updatePageStartTS(af.URL_CHANGE)},{})},e.listenPageShowEvent=function(){var t=this;"onpageshow"in window&&window.addEventListener("pageshow",function(e){if(e.persisted){var r=t.getInterId();t.updatePageStartTS(af.PAGE_SHOW),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"WebInterIdService",custom_enum:"BFCache",extJSON:{message:r+"|"+t.getInterId()}})}})},e.setInterIdInPageSessionCookie=function(t){var e=this.webContext.getPageCookieBasedSession();e.inter_id=t,this.webContext.setPageCookieBasedSession(e,ae.INTER_ID_TRIGGER)},e.setSessionLoadTS=function(t){this.sessionLoadTS=t},e.getSessionLoadTS=function(){return this.sessionLoadTS},e.getInterId=function(){return this.isPerformanceNowSupported()?this.generateInterId(af.SELF):""},e.isPerformanceNowSupported=function(){return"undefined"!=typeof globalThis&&"object"==typeof globalThis.performance&&"function"==typeof globalThis.performance.now},t}();r_=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([rv(0,H(y.D.EVENT_EMITTER)),rv(1,H(y.D.CONTEXT))],r_);var rm=function(){function t(t){var e=t.name,r=t.context,n=t.reporters;this.reporters=[],this.context=r,this.reporters=n,this.name=e}var e=t.prototype;return e.initStart=function(){},e.initEnd=function(){},e.adInfoInitStart=function(){},e.adInfoInitEnd=function(){},e.contextInitStart=function(){},e.contextInitEnd=function(){},e.pageUrlWillChange=function(t,e){},e.pageUrlDidChange=function(t,e){},e.pageDidLoad=function(){},e.pageWillLeave=function(t){},e.pageLcp=function(t){},e.pixelSend=function(t,e,r,n,o){},e.pixelDidMount=function(t){},e.sessionStart=function(t,e){},e.patchEnd=function(){},t}();function rg(t,e){return(rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ry=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rg(e,t),e}(rm=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G()],rm));function rE(t,e){return(rE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rb=function(t,e){return function(r,n){e(r,n,t)}},rw=function(t){function e(e,r){var n;return(n=t.call(this,{name:"Callback",reporters:r,context:e})||this).ttclidCookieValue="undefined"!=typeof document?tR(tl):"",n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rE(e,t),e.prototype.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"callback_plugin_pixelDidMount",start:performance.now()}}catch(t){}var r=X(),n=W(tl,r.url,r.referrer);if(n){var o=tv(n,this.ttclidCookieValue);o&&this.ttclidCookieValue!==o&&(tb(tl,o),this.ttclidCookieValue=o);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}}},e}(ry);rw=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),rb(0,H(y.D.CONTEXT)),rb(1,H(y.D.TTQ_REPORTERS))],rw);var rO={isHash:function(t){return!1},genIdentifierLabelByUserProperties:function(t){return{}}},rI={validatePhoneNumberLength:function(t){},parsePhoneNumberFromString:function(t){}},rT={tryDecodeHashedBase64String:function(t){return null},tryDecodeHashedBase64Hex:function(t){return null}},rS={checkEmailFormat:function(t){return!1},checkMDNEmailFormat:function(t){return!1}},rR=function(t){var e=t.parsePhoneNumberFromString,r=t.validatePhoneNumberLength;rI.parsePhoneNumberFromString=e,rI.validatePhoneNumberLength=r},rN=function(t){var e=t.isHash,r=t.genIdentifierLabelByUserProperties;rO.isHash=e,rO.genIdentifierLabelByUserProperties=r},rA=function(t){var e=t.tryDecodeHashedBase64String,r=t.tryDecodeHashedBase64Hex;rT.tryDecodeHashedBase64String=e,rT.tryDecodeHashedBase64Hex=r},rL=function(t){var e=t.checkEmailFormat,r=t.checkMDNEmailFormat;rS.checkEmailFormat=e,rS.checkMDNEmailFormat=r},rP=function(t){var e=t.parsePhoneNumberFromString,r=t.validatePhoneNumberLength,n=t.isHash,o=t.genIdentifierLabelByUserProperties,i=t.tryDecodeHashedBase64String,a=t.tryDecodeHashedBase64Hex,c=t.checkEmailFormat,u=t.checkMDNEmailFormat,s=t.sha256;rL({checkEmailFormat:c,checkMDNEmailFormat:u}),rA({tryDecodeHashedBase64String:i,tryDecodeHashedBase64Hex:a}),rN({isHash:n,genIdentifierLabelByUserProperties:o}),rR({parsePhoneNumberFromString:e,validatePhoneNumberLength:r}),(0,h.ZV)(s)},rx=function(t,e,r){void 0===e&&(e=""),void 0===r&&(r=rI.parsePhoneNumberFromString);var n=t,o=e?r(t,e):r(t);return o?n="86"===o.countryCallingCode?o.nationalNumber:o.number:t.replace(/[^0-9]/g,"").length>0&&(n=t.replace(/[^0-9]/g,"")),n},rC=["(null)","","''\"",void 0,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","eb045d78d273107348b0300c01d29b7552d622abbc6faf81b3ec55359aa9950c","not set",null,"6181738008c985a1b5f106b796c98e719efcc3c0ff68ddcd14a049825f4900a8","2a539d6520266b56c3b0c525b9e6128858baeccb5ee9b694a2906e123c8d6dd3","c6e52c372287175a895926604fa738a0ad279538a67371cd56909c7917e69ea1","None","74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b","f24f02d3c35894296522abac8c4b2439b1c1b650e1fb4c97c0f3c50b580b0a3c","no","a683c5c5349f6f7fb903ba8a9e7e55d0ba1b8f03579f95be83f4954c33e81098","f18a2548c063c5a2b1560c6f2b9ec44bf9ed9017884404016d74f330119aaefe","449f06574cd639e1826848ff5d70ba95904574be84f34e61baa526d517dfb493","fcbcf165908dd18a9e49f7ff27810176db8e9f63b4352213741664245224f8aa","NA","bc857c49633bbc75644c51f36b16b2f768cc0ee13f65402ec7c32c96308272dd","42cbf37902c6911d7b4e371fe8f8708a0ceda6946249d4a3e23de8d5e60ae8b7"];function rk(t,e){return(rk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rD=function(t){function e(e){var r=e.name,n=e.context,o=e.reporters;return t.call(this,{name:r,reporters:o,context:n})||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rk(e,t);var r=e.prototype;return r.setIdentifyUtils=function(t){var e=t.isHash,r=t.sha256,n=t.genIdentifierLabelByUserProperties,o=t.tryDecodeHashedBase64String,i=t.tryDecodeHashedBase64Hex,a=t.validatePhoneNumberLength,c=t.parsePhoneNumberFromString,u=t.checkEmailFormat,s=t.checkMDNEmailFormat,l=t.getCookieDeprecationLabel,f=t.getAllTopics;rP({isHash:e,sha256:r,genIdentifierLabelByUserProperties:n,tryDecodeHashedBase64String:o,tryDecodeHashedBase64Hex:i,validatePhoneNumberLength:a,parsePhoneNumberFromString:c,checkEmailFormat:u,checkMDNEmailFormat:s}),this.parsePhoneNumberFromString=c,this.checkMDNEmailFormat=s,this.checkEmailFormat=u,this.sha256=r,this.getCookieDeprecationLabel=void 0===l?function(){}:l,this.getAllTopics=void 0===f?function(){}:f},r.baseHandleUserProperties=function(t,e,r){var n=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var o={taskName:window.ttq._pf_tn||"identify_encryption",functionName:window.ttq._pf_tn&&"identify_encryption",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="identify_encryption")}}catch(t){}if(t){var i=this.identifyParamsFormattedInfo(t),a=this.identifyParamsFormattedInfoV2(t),c=rO.genIdentifierLabelByUserProperties(e),u=[];this.handlePIIDiagnostics(a),Object.entries(t).forEach(function(e){var o=e[0],i=e[1],s=void 0===i?"":i;if(s){var l=String(s);if(["email","phone_number","sha256_email","sha256_phone_number"].includes(o)){var f=n.getUserDataFormatInfoV2KeyName(o),h=rT.tryDecodeHashedBase64Hex(l);if(null!==h)t[o]=h,null!==f&&(a=n.updateUserDataFormatV2Label(f,tj.Vp.BASE64_HEX_HASHED,a));else{var p=rT.tryDecodeHashedBase64String(l);p&&(t[o]=p,null!==f&&(a=n.updateUserDataFormatV2Label(f,tj.Vp.BASE64_STRING_HASHED,a)))}}switch("zip_code"===o&&l&&(rO.isHash(l)?a=n.updateUserDataFormatV2Label("zip_code",tj.Vp.ZIP_CODE_IS_HASHED,a):(a=n.updateUserDataFormatV2Label("zip_code",tj.Vp.ZIP_CODE_IS_NOT_HASHED,a),n.isZipFromUs(t)?(t.zip_code=n.sha256(n.truncateString(l,5)),a=n.updateUserDataFormatV2Label("zip_code",tj.Vp.ZIP_CODE_IS_US,a)):(t.zip_code=n.sha256(l),a=n.updateUserDataFormatV2Label("zip_code",tj.Vp.ZIP_CODE_IS_NOT_US,a)))),o){case"email":t.email=rO.isHash(l)&&!n.checkEmailFormat(l)?l:n.sha256(n.handleEmail(l));break;case"eb_email":var d=rO.isHash(l)&&!n.checkEmailFormat(l);t.eb_email=d?l:n.sha256(n.handleEmail(l)),n.collectACP(u,c,{triggerSource:r,type:tj.MX.Email,piiWord:"email",isHashed:d,value:t.eb_email,rawLabelKey:"raw_eb_email",hashedLabelKey:"hashed_eb_email"});break;case"phone_number":t.phone_number=rO.isHash(l)?l:n.sha256(n.handlePhoneNumber(l));break;case"eb_phone_number":var v=rO.isHash(l);t.eb_phone_number=v?l:n.sha256(n.handlePhoneNumber(l)),n.collectACP(u,c,{triggerSource:r,type:tj.MX.Phone,piiWord:"phone",isHashed:v,value:t.eb_phone_number,rawLabelKey:"raw_eb_phone",hashedLabelKey:"hashed_eb_phone"});break;case"auto_email":t.auto_email=n.sha256(n.handleEmail(l));break;case"auto_phone_number":t.auto_phone_number=n.sha256(n.handlePhoneNumber(l));break;case"auto_zip_code":t.auto_zip_code=n.handleAutoZipCode(l,t);break;case"first_name":t.first_name=rO.isHash(l)?l:n.sha256(l);break;case"last_name":t.last_name=rO.isHash(l)?l:n.sha256(l);break;case"city":t.city=n.truncateString(l,80);break;case"state":t.state=n.truncateString(l,80);break;case"country":t.country=n.truncateString(l,80);break;default:return}}}),t.sha256_email&&(t.email=this.handleCheckHashedEmailValue(String(t.sha256_email),i)),t.sha256_phone_number&&(t.phone_number=this.handleCheckHashedPhoneValue(String(t.sha256_phone_number),i));try{window.ttq&&window.ttq._ppf&&(o.end=performance.now(),window.ttq._ppf.push(o),"identify_encryption"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}return{userProperties:t,userDataFormat:i,userDataFormatV2:a,identifierLabel:c,acp:u}}},r.getACPSource=function(t,e,r){if(t&&Object.values(q.mj).includes(t))return null;var n,o=((n={})[q.eM.DATA_LAYER]="dl",n[q.eM.TEXT]="ts",n),i=t?o[t]:void 0;return i?"aam_"+i+"_"+(r?"hash":"raw")+"_"+({email:"em",phone:"ph"})[e]:null},r.collectACP=function(t,e,r){var n=r.triggerSource,o=r.type,i=r.piiWord,a=r.isHashed,c=r.value,u=r.rawLabelKey,s=r.hashedLabelKey;if(c){var l=this.getACPSource(n,i,a);if(l){t.push({type:o,value:c,source:l});var f=e[a?s:u];f&&(e[l]=f)}}},r.identifyParamsFormattedInfo=function(t){var e=this,r={},n=/^sha256_(.*)$/;return Object.entries(t).forEach(function(t){var o=t[0],i=t[1],a=String(void 0===i?"":i),c=o.match(n);switch(o){case"email":e.handleEmailFormat(a,o,r);break;case"phone_number":e.handlePhoneNumberFormat(a,"phone_number",r);break;case"auto_email":e.handleEmailFormat(a,"auto_email",r);break;case"auto_phone_number":e.handlePhoneNumberFormat(a,"auto_phone_number",r);break;case(c||{}).input:var u=null==c?void 0:c.pop();u&&eP.Ae.includes(u)&&(r[u]=[tj.hZ.HASHED]);break;case"first_name":case"last_name":case"city":case"state":case"country":case"zip_code":case"partner_id":e.handleNewPiisFormat(a,o,r);break;default:r[o]=[tj.hZ.CORRECT_FORMAT]}}),r},r.identifyParamsFormattedInfoV2=function(t){var e=this,r={};return Object.entries(t).forEach(function(t){var n=t[0],o=t[1],i=String(void 0===o?"":o);switch(n){case"email":e.handlePixelValidation(i,eP.X2.EMAIL_IS_HASHED,r);break;case"phone_number":e.handlePixelValidation(i,eP.X2.PHONE_IS_HASHED,r);break;case"sha256_email":e.handlePixelValidation(i,eP.X2.SHA256_EMAIL,r);break;case"sha256_phone_number":e.handlePixelValidation(i,eP.X2.SHA256_PHONE,r);break;case"first_name":case"last_name":case"city":case"state":case"country":case"zip_code":case"partner_id":break;default:r[n]=[tj.Vp.UNKNOWN_INVALID]}}),r},r.updateUserDataFormatV2Label=function(t,e,r){var n,o;return(null===r[t]||void 0===r[t]||(null==(n=r[t])?void 0:n.includes(tj.Vp.UNKNOWN_INVALID)))&&(r[t]=[]),null==(o=r[t])||o.push(e),r},r.getUserDataFormatInfoV2KeyName=function(t){return({email:"email_is_hashed",phone_number:"phone_is_hashed",sha256_email:"sha256_email",sha256_phone_number:"sha256_phone",zip_code:"zip_code"})[t]||null},r.handlePIIDiagnostics=function(t){},r.handleEmail=function(t){return t.toLowerCase()},r.handlePhoneNumber=function(t,e){return void 0===e&&(e=this.parsePhoneNumberFromString),rx(t,"",e)},r.handleCheckHashedEmailValue=function(t,e,r){return(void 0===r&&(r=this.checkEmailFormat),e.email=e.email||[],rO.isHash(t))?(null==e||e.email.push(tj.hZ.HASHED_CORRECT),t):r(t)?(null==e||e.email.push(tj.hZ.PLAINTEXT_EMAIL),this.sha256(this.handleEmail(String(t)))):(null==e||e.email.push(tj.hZ.HASHED_ERR),this.sha256(t))},r.handleCheckHashedPhoneValue=function(t,e,r){return(void 0===r&&(r=this.parsePhoneNumberFromString),e.phone_number=e.phone_number||[],rO.isHash(t))?(null==e||e.phone_number.push(tj.hZ.HASHED_CORRECT),t):r(t)?(e.phone_number.push(tj.hZ.PLAINTEXT_PHONE),this.sha256(this.handlePhoneNumber(String(t),r))):(null==e||e.phone_number.push(tj.hZ.HASHED_ERR),this.sha256(t))},r.handlePixelValidation=function(t,e,r){r[e]=[],rC.includes(t)&&r[e].push(tj.Vp.FILTER_EVENTS),t&&rO.isHash(t)&&r[e].push(tj.Vp.HASHED),t&&this.checkEmailFormat(t)&&r[e].push(tj.Vp.PLAIN_EMAIL),t&&this.checkMDNEmailFormat(t)&&r[e].push(tj.Vp.PLAIN_MDN_EMAIL),t&&this.parsePhoneNumberFromString(t)&&r[e].push(tj.Vp.PLAIN_PHONE),t&&0===r[e].length&&r[e].push(tj.Vp.UNKNOWN_INVALID)},r.isZipFromUs=function(t){var e;return(null==(e=t.country)?void 0:e.toLowerCase())==="us"},r.handleAutoZipCode=function(t,e){if(rO.isHash(t))return t;var r,n=null==(r=e.country)?void 0:r.toLowerCase(),o=n?"us"===n:"US"===(0,l.so)();return this.sha256(o?this.truncateString(t,5):t)},r.truncateString=function(t,e){var r=Array.from(t);return r.length<=e?t:r.slice(0,e).join("")},r.handlePhoneNumberFormat=function(t,e,r){var n=this.handleCheckPhoneNumber(String(t),this.parsePhoneNumberFromString);r[e]=n},r.handleCheckPhoneNumber=function(t,e){void 0===e&&(e=this.parsePhoneNumberFromString);var r=[];return t?rO.isHash(t)?r.push(tj.hZ.HASHED):e(t)?r.push(tj.hZ.CORRECT_FORMAT):r.push(tj.hZ.WRONG_FORMAT):r.push(tj.hZ.EMPTY_VALUE),r},r.handleCheckEmail=function(t,e){void 0===e&&(e=this.checkEmailFormat);var r=[];return t?rO.isHash(t)?r.push(tj.hZ.HASHED):e(t)?r.push(tj.hZ.CORRECT_FORMAT):r.push(tj.hZ.WRONG_FORMAT):r.push(tj.hZ.EMPTY_VALUE),r},r.handleEmailFormat=function(t,e,r){var n=this.handleCheckEmail(String(t),this.checkEmailFormat);r&&r[e]&&(r[e]||[]).includes(tj.hZ.HASHED)||(r[e]=n)},r.handleNewPiisFormat=function(t,e,r){t&&(r[e]=[tj.hZ.CORRECT_FORMAT])},e}(ry);function rM(){rM=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rj(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function rU(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){rj(i,n,o,a,c,"next",t)}function c(t){rj(i,n,o,a,c,"throw",t)}a(void 0)})}}function rF(t,e){return(rF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var rG=function(t,e){return function(r,n){e(r,n,t)}},rH=function(t){function e(e,r){var n;return(n=t.call(this,{name:"Identify",reporters:r,context:e})||this).init(),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,rF(e,t);var r,n,o=e.prototype;return o.init=function(){var t=this;return this.pluginPromise||((0,u.um)(s.O.IDENTIFY_INIT_START),this.pluginPromise=tJ((0,h.vO)()).then(function(){t.detectTopics(),(0,u.um)(s.O.IDENTIFY_INIT_END)}).catch(function(){var t=Error("Loading chunk identify failed.\n(error: "+window.location.host+"/static/identify.js)");return t.name="ChunkLoadError",Promise.reject(t)})),this.pluginPromise},r=rU(rM().mark(function t(e,r,n){return rM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",void 0);case 2:return t.next=4,this.init();case 4:return t.abrupt("return",this.baseHandleUserProperties(e,r,n));case 5:case"end":return t.stop()}},t,this)})),o.handleUserProperties=function(t,e,n){return r.apply(this,arguments)},o.handlePIIDiagnostics=function(t){try{var e=t.email_is_hashed,r=void 0===e?[]:e,n=t.sha256_email,o=void 0===n?[]:n,i=t.phone_is_hashed,a=void 0===i?[]:i,c=t.sha256_phone,s=void 0===c?[]:c;if(r.includes(tj.Vp.UNKNOWN_INVALID)||o.includes(tj.Vp.UNKNOWN_INVALID))return void(0,u.ZK)(i7.INVALID_EMAIL_FORMAT);if(a.includes(tj.Vp.UNKNOWN_INVALID)||s.includes(tj.Vp.UNKNOWN_INVALID))return void(0,u.ZK)(i7.INVALID_PHONE_NUMBER_FORMAT);if(r.includes(tj.Vp.FILTER_EVENTS)||o.includes(tj.Vp.FILTER_EVENTS))return void(0,u.ZK)(i7.INVALID_EMAIL_INFORMATION);if(a.includes(tj.Vp.FILTER_EVENTS)||s.includes(tj.Vp.FILTER_EVENTS))return void(0,u.ZK)(i7.INVALID_PHONE_NUMBER_INFORMATION)}catch(t){}},n=rU(rM().mark(function t(){var e,r;return rM().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getCookieDeprecationLabel();case 3:return e=t.sent,t.next=6,this.getAllTopics();case 6:(r=t.sent)&&(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"topics",extJSON:{cookie_label:String(e),stack:r.toString()}}),t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}},t,this,[[0,10]])})),o.detectTopics=function(){return n.apply(this,arguments)},e}(rD);rH=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),rG(0,H(y.D.CONTEXT)),rG(1,H(y.D.TTQ_REPORTERS))],rH),(iH=ah||(ah={})).ERROR_FORMAT="error_format",iH.OVER_LENGTH="over_length_3e4",iH.FILTER_SENSITIVE_FIELDS="filter_sensitive_fields";var rV="form_detail_error";(iV=ap||(ap={})).GET_ELEMENTS_ERROR="get_elements_error",iV.INIT_ERROR="init_error",iV.ASSEMBLE_FORM_DETAIL_ERROR="assemble_form_detail_error",iV.DETECT_FORM_ELEMENT_ERROR="detect_form_element_error",iV.GET_OVERALL_FORM_DETAIL_ERROR="get_overall_form_detail_error",iV.FORM_OBSERVER_ERROR="form_observer_error",iV.OVER_LENGTH="over_length_3e4",(iq=ad||(ad={})).METADATA="Metadata",iq.CLICK="Click",iq.DIRECT="Direct",(iB=av||(av={})).AUTO_COLLECTION="AUTO_COLLECTION",iB.AUTO_FORM="AUTO_FORM",iB.AUTO_CLICK="AUTO_CLICK",iB.AUTO_VC="AUTO_VC",iB.AUTO_VC_REVERSE="AUTO_VC_REVERSE",(iK=a_||(a_={})).AUTO_FORM="form_rules",iK.AUTO_VC="vc_rules",iK.AUTO_VC_REVERSE="vc_rules_reverse",(iW=am||(am={})).PAGE_LEAVE="PageLeave",iW.PAGE_VIEW="PageView",iW.DOM_CHANGE="DomChange",iW.URL_CHANGE="UrlChange",iW.CLICK="Click",iW.SCROLL="Scroll",iW.REVOKE_CONSENT="RevokeConsent",iW.FORM_VISIBLE="tts-lf-form_visible",iW.START_FILL_FORM="tts-lf-start_fill_form",iW.KEY_FIELD_FILL="tts-lf-key_field_fill";var rq=["AnatomicalStructure","AnatomicalSystem","ApprovedIndication","ArriveAction","Artery","BioChemEntity","BloodTest","Bone","BorrowAction","BrainStructure","BrokerageAccount","CDCPMDRecord","ChemicalSubstance","CovidTestingFacility","DDxElement","DepartAction","DepositAccount","DiagnosticLab","DiagnosticProcedure","Diet","DietarySupplement","DoseSchedule","ElementarySchool","HighSchool","ExercisePlan","Gene","GovernmentBenefitsType","GovernmentService","HealthAspectEnumeration","HealthInsurancePlan","HealthPlanCostSharingSpecification","HealthTopicContent","Hospital","ImagingTest","InfectiousAgentClass","InvestmentFund","InvestmentOrDeposit","Invoice","Joint","LendAction","LifestyleModification","Ligament","LoanOrCredit","LymphaticVessel","MaximumDoseSchedule","MedicalAudience","MedicalAudienceType","MedicalCause","MedicalCode","MedicalCondition","MedicalConditionStage","MedicalContraindication","MedicalDevice","MedicalEntity","MedicalEvidenceLevel","MedicalGuidelineContraindication","MedicalIndication","MedicalIntangible","MedicalObservationalStudy","MedicalOrganization","MedicalProcedure","MedicalProcedureType","MedicalRiskCalculator","MedicalRiskFactor","MedicalRiskScore","MedicalSign","MedicalSignOrSymptom","MedicalStudy","MedicalSymptom","MedicalTest","MedicalTestPanel","MedicalTherapy","MedicalTrial","MiddleSchool","MoneyTransfer","Muscle","Nerve","OccupationalTherapy","Order","PalliativeProcedure","ParentAudience","PathologyTest","Patient","PeopleAudience","Person","Pharmacy","PhysicalActivity","PhysicalTherapy","Physician","PoliticalParty","Preschool","PreventionIndication","Protein","PsychologicalTreatment","RadiationTherapy","RecommendedDoseSchedule","ReportedDoseSchedule","School","Substance","SuperficialAnatomy","SurgicalProcedure","Text","TherapeuticProcedure","TreatmentIndication","URL","Vein","Vessel","VitalSign","WorkersUnion","PostalAddress","AddressLocality","StreetAddress"];(iY=ay||(ay={})).V1="v1",iY.V2="v2";var rB={IRRELEVANT_KEYWORDS:new Set(["CLOSE","OPEN"]),TERMINATION_TAGS:new Set(["UL","OL","BODY","HTML","DOCUMENT","MAIN"]),VALID_IMG_KEYWORDS:new Set(["https","http","product","goods","img","image","jpg","jpeg","png","webp"]),INVALID_IMG_KEYWORDS:new Set(["icon","logo","svg","gif"]),DYNAMIC_IMAGE_ATTRS:["data-src","data-original"],INVALID_LINK_PATTERNS:[],VALID_LINK_PATTERNS:[/^https?:\/\//],EXCLUDE_CLASSES:new Set(["hover","active","focus","current","first","last"]),MAIN_IMG_MIN_SIZE:100,MAX_TRAVERSE_LAYERS:10,MAX_IMG_COUNT:6,HIGH_SIZE_THRESHOLD:.8,SKIP_ELEMENT:new Set(["SVG","POLYGON"]),SIBLING_SIMILARITY_THRESHOLD:.7,SIBLING_NODE_COUNT_THRESHOLD:10,SIMILAR_WIDTH_THRESHOLD:.1,SIMILAR_HEIGHT_THRESHOLD:.4,PRIORITY_CONFIG:{destination:["composedPath","container"],image_url:["composedPath","container"],inner_text:["container","composedPath"]},MIN_SIZE_ABSOLUTE_VALUE:100,MAX_INNER_TEXT_LENGTH:2e3},rK={MONEY_SYMBOLS:new Set(["$","\xa5","\xa3","₩","₫","﷼","€","฿","₹","₽","zł","₦","د.إ","₱","TL","JPY","EUR","GBP","INR","BRL","CAD ","AUD","RUB","MXN","KRW","TRY","RM","SEK","THB","SGD","ARS",":-","RS","円"]),MIN_IMG_SIZE:30,MAX_COMPRESS_STRING_LENGTH:200,INVALID_DATA_SIMILARITY_THRESHOLD:.6,MAX_PRODUCTS_COUNT:8};(iX=aE||(aE={})).COMPOSED_PATH="composedPath",iX.FIND_PRODUCT_CARD="findProductCard",iX.CHECKOUT="checkout";var rW="checkout",rY=new Set(["destination","image_url","from"]),rX=new Set(["x","y","num_child_buttons","timestamp","xpath","tag","from","destination"]),rJ=((ag={})[au.EMAIL]=ef,ag[au.PASSPORT]=ed,ag[au.ID_SSN]=ep,ag[au.CREDIT_CARD]=eh,ag[au.DRIVING_LICENSE]=ev,ag[au.PHONE]=el,ag);function rz(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return rZ(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rZ(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rZ(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=function(t,e){if(!t||!e)return 0;for(var r=t.length,n=e.length,o=Array.from({length:r+1},function(){return Array(n+1).fill(0)}),i=0;i<=r;i++)o[i][0]=i;for(var a=0;a<=n;a++)o[0][a]=a;for(var c=1;c<=r;c++)for(var u=1;u<=n;u++)t[c-1]===e[u-1]?o[c][u]=o[c-1][u-1]:o[c][u]=Math.min(o[c-1][u]+1,o[c][u-1]+1,o[c-1][u-1]+1);return o[r][n]}(o.value,i.value)?(l++,f+=1):f+=2}while(!o.done||!i.done);return l/f}function r8(t){if(!t)return null;for(var e,r=rz(rB.DYNAMIC_IMAGE_ATTRS);!(e=r()).done;){var n=e.value,o=t.getAttribute(n);if(o&&r2(o))return o}if(t.src&&r2(t.src))return t.src;var i=t.getAttribute("srcset");if(i){var a=i.split(",").find(function(t){return r2(t.trim().split(" ")[0])});if(a)return a.split(" ")[0]}return null}function r4(t){if(!(t instanceof HTMLAnchorElement))return null;var e=t.href;return!function(t){if(!t)return!1;var e=t.trim();return rB.VALID_LINK_PATTERNS.some(function(t){return new RegExp(t).test(e)})&&!rB.INVALID_LINK_PATTERNS.some(function(t){return new RegExp(t).test(e)})}(e)?null:e}function r9(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function no(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=rB.SIBLING_SIMILARITY_THRESHOLD?t+1:t-1:u>=rB.SIBLING_SIMILARITY_THRESHOLD?t+1:t-1},0),u=t.getElementsByTagName("a").length>0,s=t.getElementsByTagName("img").length>0;return e.RequiredLinkData?c>=0&&u:e.RequiredImageData?c>=0&&s:c>0&&(u||s)}function nh(t){if(!t)return 0;var e=window.innerHeight||document.documentElement.clientHeight;return t.offsetHeight/e>rB.HIGH_SIZE_THRESHOLD?2:t.offsetHeight0&&e.some(function(e){return t.toLowerCase()===e.toLowerCase()})}(n,e)&&(r[n]=n_(t[n],e));return r}function nm(t){return Array.isArray(t)?t.some(function(t){return nm(t)}):"string"==typeof t&&(t=t.toLowerCase().replace(/https?:\/\/schema\.org\//,""),rq.some(function(e){return t===e.toLowerCase()}))}var ng=["form","[id*=form], [class*=form]"],ny=["label"],nE=["input,select,textarea"],nb=["radio","checkbox"],nw=["hidden","reset","submit","password"];function nO(t,e){try{for(var r=0;r0)return Array.from(n)}return[]}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rV,custom_enum:ap.GET_ELEMENTS_ERROR}),[]}}function nI(t){var e="";return!function t(r){for(;r;)r.nodeType===Node.TEXT_NODE?e+=r.textContent:"SELECT"!==r.nodeName&&r.firstChild&&t(r.firstChild),r=r.nextSibling}(t.firstChild),e.replace(/[\t\n]/g,"").trim()}function nT(t){if(!t)return!1;var e=window.getComputedStyle(t);return!("none"===e.display||"visible"!==e.visibility||function t(e){return!(!e||e.isSameNode(document.body)||e.isSameNode(document))&&("0"==window.getComputedStyle(e).opacity||t(e.parentElement))}(t))&&(0!==t.offsetWidth||0!==t.offsetHeight)}function nS(t){var e=t.getAttribute("type");return!!e&&nw.indexOf(e)>-1}function nR(t){return t&&(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi.test(t)||/(\+?0?86-?)?1[3-9]\d{9}/g.test(t)||/(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}/g.test(t)||/^[\-!$><-==&_\/\?\.,0-9:; \]\[%~\"\{\}\)\(\+\@\^\`]/g.test(t)||rq.some(function(e){return t.toLowerCase().indexOf(e.toLowerCase())>-1}))?"__Text__":t}(iJ=ab||(ab={}))[iJ.CONTAIN=0]="CONTAIN",iJ[iJ.ID=1]="ID",iJ[iJ.SELECTOR=2]="SELECTOR";var nN=function(){function t(t){var e=this;this.formUpdateHandlers=[],this.answerMap={},t.find(function(t){var r=e.getRules(t);return!!r&&(e.rules=r,!0)}),this.init()}var e=t.prototype;return e.getRules=function(t){var e=t.plugins&&t.plugins.AutoConfig;return e&&e[a_.AUTO_FORM]},e.init=function(){var t=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"initAutoForm_init",start:performance.now()}}catch(t){}try{this.forms=this.detectFormElement(),this.forms&&this.forms.forEach(function(e){e.formDetail=t.assembleFormDetail(e),t.startFormObserver(e,t.formUpdateHandlers)})}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rV,custom_enum:ap.INIT_ERROR})}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e.getOverallFormDetail=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"initAutoForm_getOverallFormDetail",start:performance.now()}}catch(t){}var e="[]";try{this.forms&&this.forms.length>0&&(this.forms.some(function(t){var e=t.el;return!document.body.contains(e)})&&this.init(),e=JSON.stringify(this.forms.map(function(t){return t.formDetail}).filter(function(t){return t})))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rV,custom_enum:ap.GET_OVERALL_FORM_DETAIL_ERROR})}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}return e},e.addFormUpdateHandler=function(t){this.formUpdateHandlers.push(t)},e.startFormObserver=function(t,e){var r=this;try{var n=(0,h.Ds)(function(){var n=r.assembleFormDetail(t);(!t.formDetail||n&&(0,h.eh)(n,t.formDetail))&&(t.formDetail=n,e.forEach(function(e){return e.call(r,t.formDetail)}))},2e3,this);if(t.el.parentNode){var o=t.el.parentNode;this.observer&&this.observer.disconnect(),this.observer=new MutationObserver(n),this.observer.observe(o,{attributes:!0,childList:!0,subtree:!0}),o.addEventListener("click",n,{capture:!0})}}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rV,custom_enum:ap.FORM_OBSERVER_ERROR})}},e.detectFormElement=function(){try{var t,e,r=[0,0,0],n=(t=this.rules,(e=nO(t||ng,document)).filter(function(t){return!e.some(function(e){return e.contains(t)&&e!==t})}));if(!n)return[];var o=n.map(function(t){return{el:t,questions:[]}});return o.forEach(function(t){var e,n,o=(e=t.el,nO(ny,e)),i=new Set([]);o.forEach(function(e){var n=function(t,e){var r=nO(nE,t);if(r&&r.length)return{els:r,from:ab.CONTAIN};var n=t.getAttribute("for");if(n&&(r=nO(["input[id='"+n+"'],select[id='"+n+"'],textarea[id='"+n+"']"],e)))return{els:r,from:ab.ID};return!1}(e,t.el);if(n){var o=n.els,a=n.from,c=o.filter(function(t){return!nS(t)}).map(function(t){return i.add(t),{el:t,from:a}});c&&c.length&&(r[a]=1,t.questions.push({el:e,answers:c}))}}),(n=t.el,nO(nE,n)).filter(function(t){return!nS(t)}).forEach(function(e){if(!i.has(e)){r[ab.SELECTOR]=1;var n,o=(n=t.el,function t(e){return null==e||e.isSameNode(n)?n:nI(e).length>0?e:t(e.parentNode)}(e.parentNode));t.questions.push({el:o,answers:[{el:e,from:ab.SELECTOR}]})}})}),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"form_detail_answer_from",custom_enum:r.join("")}),o}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rV,custom_enum:ap.DETECT_FORM_ELEMENT_ERROR}),[]}},e.calculateQuestionFilledTime=function(t){var e=t.el,r=t.answers,n=rQ(e),o=r.reduce(function(t,e){var r=e.el,n=r.getAttribute("type");return n&&nb.indexOf(n.toLowerCase())>-1?t+","+r.checked:t+","+r.value},"");this.answerMap[n]||(this.answerMap[n]={defaultValue:o,value:o});var i=this.answerMap[n],a=i.defaultValue,c=i.filledTime;return(this.answerMap[n].value=o,a===o)?void delete this.answerMap[n].filledTime:c||(this.answerMap[n].filledTime=+new Date)},e.assembleFormDetail=function(t){var e=this,r=t.el,n=t.questions;try{var o={xpath:rQ(r),id:r.id,name:nR(r.getAttribute("name")),tag:r.tagName.toLowerCase(),class_name:r.className,questions:[],width:r.offsetWidth,height:r.offsetHeight,is_visible:nT(r)};return o.questions=n.map(function(t){var r=t.el,n=t.answers,o={xpath:rQ(r),id:r.id,name:nR(nI(r)),tag:r.tagName.toLowerCase(),class_name:r.className,filled_time:e.calculateQuestionFilledTime(t),answers:[],width:r.offsetWidth,height:r.offsetHeight,is_visible:nT(r)};return n.forEach(function(t){var e=t.el,r=t.from;e&&"SELECT"===e.tagName.toUpperCase()?o.answers=o.answers.concat(Array.from(e.querySelectorAll("option")).map(function(t){return{xpath:rQ(t),id:t.id,name:nR(t.value||t.innerText),tag:t.tagName.toLowerCase(),class_name:t.className,from:r,width:t.offsetWidth,height:t.offsetHeight,is_visible:nT(e)}})):o.answers.push({xpath:rQ(e),id:e.id,name:nR(e.getAttribute("name")),tag:e.tagName.toLowerCase(),class_name:e.className,input_type:e.getAttribute("type"),placeholder:nR(e.getAttribute("placeholder")),from:r,width:e.offsetWidth,height:e.offsetHeight,is_visible:nT(e)})}),o}),o}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:rV,custom_enum:ap.ASSEMBLE_FORM_DETAIL_ERROR});return}},t}(),nA="::url",nL=["United States","US","Canada","CA","Australia","AU","Mexico","MX","Argentina","AR","Chile","CL","Colombia","CO","Fiji","FJ","Liberia","LR","Namibia","NA","New Zealand","NZ","Singapore","SG","Solomon Islands","SB","Suriname","SR","South Africa","ZA","Barbados","BB","Belize","BZ","Cuba","CU","Dominican Republic","DO","Guyana","GY","Jamaica","JM","Cayman Islands","KY","Trinidad and Tobago","TT","Tuvalu","TV","Zimbabwe","ZW","United Kingdom","GB","Egypt","EG","Falkland Islands","FK","Gibraltar","GI","Guernsey","GG","Isle of Man","IM","Jersey","JE","Lebanon","LB","Saint Helena","SH","Syria","SY","Sudan","SD","Japan","JP","China","CN","Japan","JP","CN","South Korea","KR","Philippines","PH","Cuba","CU","Sweden","SE","Norway","NO","Denmark","DK","Iceland","IS","Costa Rica","CR","El Salvador","SV","Bolivia","BO","Venezuela","VE","Bahamas","BS","Brunei","BN","Ethiopia","ET","Eritrea","ER","Iran","IR","Oman","OM","Qatar","QA","Saudi Arabia","SA","Yemen","YE","Bulgaria","BG","Kyrgyzstan","KG","Central African CFA franc zone","XAF","West African CFA franc zone","XOF"].map(function(t){return t.toUpperCase()}),nP=["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTC","BTN","BWP","BYN","BYR","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNH","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","ETH","EUR","FJD","FKP","GBP","GEL","GGP","GHC","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTC","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RMB","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRL","TRY","TTD","TVD","TWD","TZS","UAH","UGX","USD","UYI","UYU","UYW","UZS","VEF","VES","VND","VUV","WST","XAF","XBT","XCD","XOF","XPF","XSU","XUA","YER","ZAR","ZMW","ZWD","ZWL"];function nx(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return nC(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nC(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function nC(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0?r:null}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"enhancement_parameter_inference"}),null}},nB=function(t,e){var r=null;for(var n in e)if(t.includes(n))return e[n];return null},nK=function(t,e){var r=function(t,e){try{for(var r,n=document.evaluate(t,document,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null),o=null;r=n.iterateNext();)/\d/.test(r.innerText)&&(o=r);if(!o&&e)for(var i=document.getElementsByClassName(e),a=0;a=a.length-3&&(o=!0),o&&(r=r.slice(0,n-(a.length-1))+"."+r.slice(n-(a.length-1))),r}return null}(n):null,textContent:n}},nW=function(t){if(!t)return{currencyCode:null,currencyCodeFromeXpath:null};var e,r=null==(e=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)?void 0:e.textContent,n=((null==r?void 0:r.trim())?nP.includes(r.toUpperCase().trim()):null)?null==r?void 0:r.toUpperCase().trim():null;return{currencyCode:r,currencyCodeFromeXpath:n}},nY=function(t){if(!t)return{countryCode:null,countryCodeFromXpath:null};var e,r=null==(e=document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)?void 0:e.textContent,n=((null==r?void 0:r.trim())?nL.includes(r.toUpperCase().trim()):null)?null==r?void 0:r.toUpperCase().trim():null;return{countryCode:r,countryCodeFromXpath:n}},nX=function(t){try{var e=new URL(t).hostname.split(".");for(var r in e)if(nL.includes(e[r].toUpperCase()))return e[r].toUpperCase()}catch(t){}return null},nJ=function(t,e,r){try{if(t)for(var n,o=nx(t);!(n=o()).done;){var i=n.value;if(i.valueXpath&&i.currency&&i.currency.val){var a=i.currency.val,c=nK(i.valueXpath,i.currency.val),l=c.textContent,f=c.priceNumberString;if(f&&l){var h=nW(i.currency.xpath),p=h.currencyCode,d=h.currencyCodeFromeXpath;p&&(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"auto_value_currency_currency_code_form_xpath",extJSON:{url:e,currencyCode:p,vcConfig:r}});var v=nY(i.countryCodeXpath),_=v.countryCode,m=v.countryCodeFromXpath;_&&(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"auto_value_currency_country_form_xpath",extJSON:{url:e,country:_,vcConfig:r}});var g={value:f,currency:d||a,ori_value:l,rule_key:i.rule_key,country_code:m};return m||(g.country_code=nX(e)),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"auto_value_currency_update_info",extJSON:{url:e,autoProperties:g,vcConfig:r}}),nz(n$,g),g}}}return null}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"updateParameterInferenceData",custom_enum:"updateAutoVCData"}),null}},nz=function(t,e){try{sessionStorage.setItem(t,JSON.stringify(e))}catch(t){}},nZ=function(t){try{var e=sessionStorage.getItem(t);return e?JSON.parse(e):null}catch(t){return null}},nQ=function(t){try{sessionStorage.removeItem(t)}catch(t){}},n$="value_currency_rule",n0="parameter_inference_rule";(iz=aw||(aw={})).FirstIdXPath="firstIdXPath",iz.AbsoluteXPath="absoluteXPath",iz.ThreeLeveltagClassXPath="threeLeveltagClassXPath",(iZ=aO||(aO={})).InsightsHelper="insights_helper",iZ.AiAgent="ai_agent",(iQ=aI||(aI={})).DomXpath="dom_xpath",iQ.UrlPath="url_path",iQ.UrlQuery="url_query",(i$=aT||(aT={})).Query="query",i$.Path="path",(aS||(aS={})).Segment="segment";var n1=[aw.FirstIdXPath,aw.AbsoluteXPath,aw.ThreeLeveltagClassXPath],n2="pi_rules",n3=[aO.InsightsHelper,aO.AiAgent],n6=function(t){var e;return!(!t||"object"!=typeof t||Array.isArray(t))&&"string"==typeof t.xpath_key&&((e=t.xpath_key)===aw.FirstIdXPath||e===aw.AbsoluteXPath||e===aw.ThreeLeveltagClassXPath)&&"string"==typeof t.xpath},n5=function(t){try{var e=JSON.parse(t);if(!Array.isArray(e))return(0,u.vU)(s.O.CUSTOM_ERROR,Error("pi_rules dom_xpath rule_detail is not array"),{custom_name:n2,custom_enum:"normalize_dom_xpath_rule_detail_invalid"}),[];return e.filter(n6)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n2,custom_enum:"normalize_dom_xpath_rule_detail"})}return[]},n8=function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.includes(r))return e[r];return null},n4=function(t){var e=n5(t);if(!e.length)return null;for(var r=0;r0?r:null}if(e.component===aT.Path&&e.mode===aS.Segment){if(!e.trigger||"number"!=typeof e.parameter_value)return null;var n=new URL(t).pathname.split("/").filter(function(t){return t.length>0}),o=e.trigger,i=e.parameter_value;if(o.index<0||o.index>=n.length||n[o.index]!==o.key_word||i<0||i>=n.length)return null;return n[i]}return null}catch(t){return null}},oe=function(t,e){for(var r=0;r0;return T&&(nz(n0,o),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:n2,custom_enum:"pi_results",extJSON:{message:JSON.stringify(o)}})),T?o:null}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:n2,custom_enum:"update_pi_rules_data"}),null}},on=[am.CLICK,am.SCROLL],oo=function(){function t(t){var e=this;this.handlerArray=t,on.forEach(function(t){window.addEventListener(t.toLowerCase(),(0,h.Ds)(function(){e.interactionHandler(t)},2e3,e),{capture:!0,passive:!0})})}var e=t.prototype;return e.iterateHandlerArray=function(t){this.handlerArray.forEach(function(e){return e(t)})},e.interactionHandler=function(t){var e=this;this.timeoutId&&clearTimeout(this.timeoutId),this.iterateHandlerArray(t),this.timeoutId=setTimeout(function(){e.iterateHandlerArray(t)},2e3)},t}(),oi=function(){function t(){this.history={}}var e=t.prototype;return e.hasReport=function(t,e,r){var n=this.genHistoryKey(t,e);return this.history[n]&&this.history[n].indexOf(r)>-1},e.addHistory=function(t,e,r){var n=this.genHistoryKey(t,e);this.history[n]||(this.history[n]=[]),this.history[n].push(r)},e.clearHistory=function(){this.history={}},e.genHistoryKey=function(t,e){return t+":"+e},t}(),oa=function(){function t(t,e,r,n){this.context=t,this.reportHistory=new oi,this.reporters=e,this.reportService=r,this.ttqOptions=n}var e=t.prototype;return e.report=function(t,e,r){var n=this,o=t4(ar.AUTO_CONFIG),i=r?this.getReportPixelList(r,e):this.reporters.filter(function(t){return r0(t)}),a=this.assemblyReportData(t,e,i);a&&o&&this.reportService.reportPreTasks.then(function(){n.reportService.report(o,a,ao.defaultReport,ai.P0)})},e.clearHistory=function(){this.reportHistory.clearHistory()},e.getReportPixelList=function(t,e){var r=this,n=JSON.stringify(Object.assign({},e,{page_trigger:void 0}));return this.reporters.filter(function(e){return!!r0(e)&&r1(e,t)}).filter(function(e){var o=e.getReporterId();return!([av.AUTO_COLLECTION,av.AUTO_FORM].indexOf(t)>-1&&r.reportHistory.hasReport(t,o,n))&&(r.reportHistory.addHistory(t,o,n),e)})},e.getCookieBasedSessions=function(t){var e=[],r=tH(document.cookie),n=t.filter(function(t){var e,r;return!!(null==(e=null==t?void 0:t.reporterInfo)?void 0:e.firstPartyCookieEnabled)&&(null==(r=null==t?void 0:t.reporterInfo)?void 0:r.csidEnabled)!==!1});if(0===n.length)return e;var o=this.context.setPageCookieBasedSession(r[""]);return n.forEach(function(t){var n=t.getReporterId(),i=t.setCookieBasedSession(r[n]);e.push(tB(i,o,n))}),e},e.assemblyReportData=function(t,e,r){if(0!==r.length){var n,o,i,a=r.map(function(t){return t.getReporterId()}),c=this.context.getPageSign(),u=(null==(o=null==(n=this.ttqOptions)?void 0:n.cookieBasedSessionConfig)?void 0:o.enable)?this.getCookieBasedSessions(r):[],s=r[0],l=s.assemblyData(s.getReporterId(),"",{},{},ar.AUTO_CONFIG);return delete l.event,l.action=t,l.auto_collected_properties=e,l.context.pixel||(l.context.pixel={}),l.context.pixel.code=a[0],l.context.pixel.codes=a.join("|"),l.context.index=null==(i=c.pageIndex)?void 0:i.index,l.context.session_id=c.sessionId,l.context.pageview_id=(0,ty.gj)(this.context.getPageViewId(),s.reporterInfo.loadId,q.n2),l.context.sessions=u,l.message_id=l.message_id.replace(/-[^-]*$/,""),l}},t}(),oc=["form",'[id*="form" i]','[class*="form" i]','[id*="lead" i]','[class*="lead" i]','[id*="contact" i]','[class*="contact" i]'],ou=["input[type=submit]","button[type=submit]"],os=/submit|send|apply|contact|lead/i,ol=/mail/i,of=/phone|mobile|tel/i,oh=/search/i,op=/password/i,od={FIELD_ACTIVATION:"field_activation",FIELD_EXTRA:"field_extra",SUBMIT_STRONG:"submit_strong",SUBMIT_WEAK:"submit_weak",NATIVE_FORM:"native_form",EMAIL:"email",PHONE:"phone",VISIBLE:"visible",STRONG_FORM_PASSWORD:"strong_form_password",WEAK_FORM_PASSWORD:"weak_form_password",STRONG_FORM_SEARCH:"strong_form_search",WEAK_FORM_SEARCH:"weak_form_search",ZERO_SIZE:"zero_size",ZERO_FIELD:"zero_field"},ov=((aR={})[od.FIELD_ACTIVATION]=4,aR[od.FIELD_EXTRA]=2,aR[od.SUBMIT_STRONG]=5,aR[od.SUBMIT_WEAK]=2,aR[od.NATIVE_FORM]=5,aR[od.EMAIL]=12,aR[od.PHONE]=12,aR[od.VISIBLE]=5,aR[od.STRONG_FORM_SEARCH]=-15,aR[od.WEAK_FORM_SEARCH]=-50,aR[od.ZERO_SIZE]=-50,aR[od.ZERO_FIELD]=-30,aR[od.WEAK_FORM_PASSWORD]=-30,aR[od.STRONG_FORM_PASSWORD]=-15,aR),o_={FORM_VISIBLE:"form_visible",START_FILL_FORM:"start_fill_form",KEY_FIELD_FILL:"key_field_fill"},om=((aN={})[o_.FORM_VISIBLE]=am.FORM_VISIBLE,aN[o_.START_FILL_FORM]=am.START_FILL_FORM,aN[o_.KEY_FIELD_FILL]=am.KEY_FIELD_FILL,aN),og="form_funnel",oy="default_id";function oE(t){return"form"===t.tagName.toLowerCase()}function ob(t){return t.querySelectorAll('input:not([type="hidden"]), textarea, select').length}function ow(t){try{if(!1===t.isTrusted)return!1;return t.composedPath().some(function(t){if(!(t instanceof HTMLElement))return!1;var e=t.tagName;return!!("INPUT"===e||"TEXTAREA"===e||"SELECT"===e||"BUTTON"===e||"A"===e&&/btn|submit|apply/i.test(t.className))||"LABEL"===e||"button"===t.getAttribute("role")})}catch(t){return!1}}(i0=aA||(aA={})).INIT="init",i0.CLICK="click",i0.SCROLL="scroll";var oO=function(){function t(t,e,r){this.visibleReported=!1,this.firstInteractReported=!1,this.keyInputInteractReported={phone:!1,email:!1},this.formId=t,this.root=e,this.onEvent=r}var e=t.prototype;return e.updateRoot=function(t){this.root=t},e.destroy=function(){this.visibleTimer&&clearTimeout(this.visibleTimer)},e.handleScroll=function(){return this.checkVisible(aA.SCROLL),!0},e.handleClick=function(t){try{var e=t.composedPath().filter(function(t){return t instanceof HTMLElement});if(!e.includes(this.root))return!1;return this.checkVisible(aA.CLICK),this.handleFirstInteract(t),this.handleInputInteract(e),!0}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:og,custom_enum:"handle_click",extJSON:{message:this.formId+"|"+(0,l.er)()}}),!1}},e.checkVisible=function(t){var e=this;try{if(this.visibleReported||!this.isInViewport())return;if(t===aA.CLICK)return void this.reportVisible();if(this.visibleTimer)return;this.visibleTimer=setTimeout(function(){try{e.visibleTimer=void 0,!e.visibleReported&&e.isInViewport()&&e.reportVisible()}catch(t){}},500)}catch(e){(0,u.vU)(s.O.CUSTOM_ERROR,e,{custom_name:og,custom_enum:"check_visible",extJSON:{message:t+"|"+this.formId+"|"+(0,l.er)()}})}},e.reportVisible=function(){this.visibleReported||(this.visibleReported=!0,this.onEvent(o_.FORM_VISIBLE))},e.handleFirstInteract=function(t){try{if(this.firstInteractReported||!ow(t))return;this.firstInteractReported=!0,this.onEvent(o_.START_FILL_FORM)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:og,custom_enum:o_.START_FILL_FORM,extJSON:{message:this.formId+"|"+(0,l.er)()}})}},e.handleInputInteract=function(t){try{if(this.keyInputInteractReported.phone&&this.keyInputInteractReported.email)return;var e=null;if(!(e=t.find(function(t){return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement})||null)){var r=t.find(function(t){return t instanceof HTMLLabelElement});r&&(r.htmlFor&&(e=document.getElementById(r.htmlFor)),e||(e=r.querySelector("input,textarea")))}if(!e){var n=document.activeElement;(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)&&this.root.contains(n)&&(e=n)}if(!e)return;var o=[e.name,e.id,e.placeholder,e.type,e.title,e.className,e.getAttribute("aria-label")].filter(Boolean).join(" "),i=null;if("email"===e.type||/mail/i.test(o)?i="email":("tel"===e.type||/phone|mobile/i.test(o))&&(i="phone"),!i)return;this.keyInputInteractReported[i]||(this.keyInputInteractReported[i]=!0,this.onEvent(o_.KEY_FIELD_FILL,i))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:og,custom_enum:o_.KEY_FIELD_FILL,extJSON:{message:this.formId+"|"+(0,l.er)()}})}},e.isInViewport=function(){var t=this.root.getBoundingClientRect();return t.width>0&&t.height>0&&t.bottom>0&&t.right>0&&t.topt.length)&&(e=t.length);for(var r=0,n=Array(e);r=e.MIN_SCORE_THRESHOLD}).sort(function(t,e){return e.score-t.score}).slice(0,this.TOP_K)}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:og,custom_enum:"scorer_score"}),[]}},e.scoreSingle=function(t){try{var e=this.extractFeatures(t),r=this.calculateScore(e);return{el:t,score:r,breakdown:e}}catch(e){return(0,u.vU)(s.O.CUSTOM_ERROR,e,{custom_name:og,custom_enum:"scorer_scoreSingle",extJSON:{message:(t?null==t?void 0:t.className:"")+"|"+(t?null==t?void 0:t.id:"")}}),{score:0,el:t,breakdown:null}}},e.extractFeatures=function(t){var e=Array.from(t.querySelectorAll("input,select,textarea")).filter(function(t){return t&&(null==t?void 0:t.type)!=="hidden"&&!(null==t?void 0:t.disabled)}),r=t.getBoundingClientRect();return{fieldCount:e.length,submiButtontLevel:this.detectSubmit(t),hasEmail:this.detectEmail(e),hasPhone:this.detectPhone(e),hasPassword:e.some(function(t){return"password"===t.type||op.test(t.className||"")}),hasSearch:e.some(function(t){return"search"===t.type||oh.test(t.className||"")}),isForm:"FORM"===t.tagName,visible:r.width>50&&r.height>50,zeroSize:0===r.width||0===r.height,scoreMap:{}}},e.calculateScore=function(t){try{var e=0,r=function(r,n){0!==n&&(t.scoreMap[r]=n),e+=n};if(t.fieldCount>=1){r(od.FIELD_ACTIVATION,ov[od.FIELD_ACTIVATION]);var n=Math.min(t.fieldCount-1,2);n>0&&r(od.FIELD_EXTRA,n*ov[od.FIELD_EXTRA])}else r(od.ZERO_FIELD,ov[od.ZERO_FIELD]);return"strong"===t.submiButtontLevel?r(od.SUBMIT_STRONG,ov[od.SUBMIT_STRONG]):"weak"===t.submiButtontLevel&&r(od.SUBMIT_WEAK,ov[od.SUBMIT_WEAK]),t.isForm&&r(od.NATIVE_FORM,ov[od.NATIVE_FORM]),t.hasEmail&&r(od.EMAIL,ov[od.EMAIL]),t.hasPhone&&r(od.PHONE,ov[od.PHONE]),t.visible&&r(od.VISIBLE,ov[od.VISIBLE]),t.zeroSize&&r(od.ZERO_SIZE,ov[od.ZERO_SIZE]),t.hasPassword&&t.hasPhone?r(od.STRONG_FORM_PASSWORD,ov[od.STRONG_FORM_PASSWORD]):t.hasPassword&&r(od.WEAK_FORM_PASSWORD,ov[od.WEAK_FORM_PASSWORD]),t.hasSearch&&t.hasPhone?r(od.STRONG_FORM_SEARCH,ov[od.STRONG_FORM_SEARCH]):t.hasSearch&&r(od.WEAK_FORM_SEARCH,ov[od.WEAK_FORM_SEARCH]),e}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:og,custom_enum:"scorer_calculateScore"}),0}},e.detectSubmit=function(t){for(var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return oT(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oT(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(ou);!(e=r()).done;){var n=e.value;if(t.querySelector(n))return"strong"}for(var o=Array.from(t.querySelectorAll("button,a,[role=button]")),i=0;i0?"weak":"none"},e.detectEmail=function(t){return t.some(function(t){return"email"===t.type||ol.test((t.name||"")+(t.id||"")+(t.placeholder||"")+((null==t?void 0:t.className)||""))})},e.detectPhone=function(t){return t.some(function(t){return"tel"===t.type||of.test((t.name||"")+(t.id||"")+(t.placeholder||"")+((null==t?void 0:t.className)||""))})},t}(),oR=function(){function t(){}var e=t.prototype;return e.scan=function(){try{var t=[],e=this.getExplicitRoots();if(t.push.apply(t,e),0===t.length){var r=this.getFallbackRoots();t.push.apply(t,r)}return this.normalizeRoots(t)}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:og,custom_enum:"scanner_scan"}),[]}},e.getExplicitRoots=function(){try{var t=new Set;return oc.forEach(function(e){try{var r=document.querySelectorAll(e);r.length<=100&&r.forEach(function(e){t.add(e)})}catch(t){}}),Array.from(t)}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:og,custom_enum:"scanner_get_explicit_roots"}),[]}},e.getFallbackRoots=function(){return[]},e.normalizeRoots=function(t){if(!t.length)return[];var e=this.filterRootCandidates(t);if(e.length<=1)return e;var r=new Set;return this.resolveContainment(e,r),e.filter(function(t){return!r.has(t)})},e.filterRootCandidates=function(t){return t.filter(function(t){try{return["FORM","DIV","SECTION","ARTICLE","ASIDE","MAIN","NAV","HEADER","FOOTER"].includes(t.tagName)}catch(t){return!1}})},e.resolveContainment=function(t,e){try{for(var r=0;ro&&r.add(e)}},t}();function oN(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i);!(r=c()).done;){var l=function(){var t=r.value.el,n=e.identity.resolve(t);if(n===oy)return"continue";if(e.interactors[n]){var o=e.interactors[n];o.updateRoot(t),a[n]=o}else a[n]=new oO(n,t,function(t,r){return e.handleFunnelEvent(n,t,r)})}();if("continue"===l)continue}Object.keys(this.interactors).forEach(function(t){a[t]||e.interactors[t].destroy()}),this.interactors=a;var f=performance.now();this.hasReportPerformance||t===aA.INIT||(this.hasReportPerformance=!0,(0,u.um)(s.O.CUSTOM_INFO,{custom_name:og,custom_enum:"performance_refresh_forms",extJSON:{message:""+(f-n)}}))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:og,custom_enum:"refresh_forms"})}},e.handleFunnelEvent=function(t,e,r){(0,u.um)(s.O.CUSTOM_INFO,{custom_name:og,custom_enum:e,extJSON:{message:t+"|"+(0,l.er)()+"|"+(r||"")}},!1,!0);var n=om[e];n&&this.reportLeadFunnelEvent&&this.reportLeadFunnelEvent(n)},t}();function oL(){oL=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function oP(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function ox(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){oP(i,n,o,a,c,"next",t)}function c(t){oP(i,n,o,a,c,"throw",t)}a(void 0)})}}function oC(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ok(t,e){return(ok=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var oD=function(t,e){return function(r,n){e(r,n,t)}},oM="AutoConfig",oj="tt_auto_config_v2_test",oU=["7039626978839838722"],oF=function(t){function e(e,r,n,o){var i,a,c,l;(i=t.call(this,{name:oM,reporters:r,context:e})||this).autoCollectedMetadata={},i.initializeVersion1=!1,i.initializeVersion2=!1,i.signal_insights_config=null,i.pi_rules=null,i.intent_data=[],i.currentPixelCode="",i.hasFormFunnelInit=!1,i.autoFormUpdateHandler=(0,h.Ds)(function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"auto_config_form_handler",functionName:window.ttq._pf_tn&&"auto_config_form_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="auto_config_form_handler")}}catch(t){}if(i.autoForm){if(i.autoCollectedFormDetail=i.autoForm.getOverallFormDetail(),i.autoCollectedFormDetail.length>3e4)return void(0,u.vU)(s.O.CUSTOM_ERROR,{message:""+String(i.autoCollectedFormDetail.length)},{custom_name:rV,custom_enum:ap.OVER_LENGTH});i.actTracker.report(ad.METADATA,{page_trigger:t,form_details:i.autoCollectedFormDetail},av.AUTO_FORM)}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"auto_config_form_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},200,oC(i)),i.autoCollectionUpdateHandler=(0,h.Ds)(function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e={taskName:window.ttq._pf_tn||"auto_config_metadata_handler",functionName:window.ttq._pf_tn&&"auto_config_metadata_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="auto_config_metadata_handler")}}catch(t){}i.autoCollectedMetadata=function(t){var e={open_graph:"{}",microdata:"[]",json_ld:"[]",meta:"{}"};try{e.microdata=function(){if(!np.getMetaData)return"[]";for(var t=document.querySelectorAll("[itemscope]"),e=[],r=nv(),n=0;n=0;o--){var i=t[o],a=i.getAttribute("itemtype");if("string"==typeof a&&""!==a){for(var c={},u=i.querySelectorAll("[itemprop]"),s=0;s0)return t.innerText;if(t.textContent&&t.textContent.length>0)return t.textContent}return""}(t)||""}return"string"==typeof e?nd(e):""}(l);if(null!=h){var p=c[f];null!=p&&function(t,e){return null!=[{property:"image",type:"Product"}].filter(function(r){return(t==="https://schema.org/"+r.type||t==="http://schema.org/"+r.type)&&r.property===e})[0]}(a,f)?Array.isArray(p)?c[f].push(h):c[f]=[p,h]:c[f]=h}}}}e.unshift({schema:{dimensions:{h:i.clientHeight,w:i.clientWidth},properties:nm(a)?{}:c,subscopes:[],type:a},scope:i})}}for(var d=[],v=[],_=0;_=0;E--)if(d[E].scope.contains(g)){d[E].schema.subscopes.push(y);break}else d.pop();0===d.length&&v.push(y),d.push({schema:y,scope:g})}var b=JSON.stringify(v);return b.length>3e4&&(b="[]",np.getMicroData=!1),b}()}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"microdata"})}try{var r=function(){if(!np.getJSONLD)return{data:"[]",errors:[]};for(var t=[],e=[],r=document.querySelectorAll('script[type="application/ld+json"]'),n=0,o=0;o3e4)return np.getJSONLD=!1,{data:JSON.stringify([]),errors:[{name:ah.OVER_LENGTH,message:""+String(n)}]};var a=void 0;try{a=JSON.parse(i.replace(/[\n\r\t]+/g," "))}catch(t){e.push({name:ah.ERROR_FORMAT,message:t.message})}try{a=function t(e){if("object"!=typeof e)return e;if(Array.isArray(e))return e.map(function(e){return t(e)});var r=Object.assign({},e),n=r["@type"];for(var o in r)"@type"!==o&&"@context"!==o&&("object"==typeof r[o]?r[o]=t(r[o]):n&&nm(n)&&delete r[o]);return r}(a)}catch(t){return{data:JSON.stringify([]),errors:[{name:ah.FILTER_SENSITIVE_FIELDS,message:t.message}]}}a&&t.push(a)}}return{data:JSON.stringify(t),errors:e}}(),n=r.data,o=r.errors;e.json_ld=n,o&&o.forEach(function(t){var e=t.name,r=t.message;(0,u.vU)(s.O.CUSTOM_ERROR,{message:r},{custom_name:"parse_json_ld_failed",custom_enum:e})})}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"assemble_auto_config_failed",custom_enum:"json_ld"})}try{e.open_graph=function(t){if(!np.getOpenGraph)return"{}";for(var e=nv(["og","product","music","video","article","book","profile","website","twitter"]),r={},n=document.querySelectorAll("meta[property],meta[name]"),o=0;ot.width?e:t})}(t);r&&(e.image_url=r.src)}if(!e.destination){var n=nl(t);n&&(e.destination=n)}return e}(v));var _=(a={composedPath:f,container:h},c=rB.PRIORITY_CONFIG,l={},Object.entries(c).forEach(function(t){for(var e,r=t[0],n=t[1],o=rz(n);!(e=o()).done;){var i=a[e.value][r];if(i){l[r]=i;break}}}),l),m=_.destination||_.image_url;if(v?_.from=aE.FIND_PRODUCT_CARD:_.from=aE.COMPOSED_PATH,_.inner_text=nr(_.inner_text),(null==(e=_.inner_text)?void 0:e.length)>rB.MAX_INNER_TEXT_LENGTH)return null;return m?_:null}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"findRelatedParameter_error"}),null}}(e),!("v1"===r&&!a||"v1"===r&&!(0,h.iK)(a)||"v2"===r&&!o&&!c)){t.next=6;break}return t.abrupt("return");case 6:if(i.queryDeepIntentData(),i.pi_rules?or(i.context,i.pi_rules):i.signal_insights_config&&nM(i.context,i.signal_insights_config),!a){t.next=19;break}return l=ns(nu(a)),t.next=12,i.sensitiveRedactor.processAsync(l,"replace",rX);case 12:if((f=t.sent).success){t.next=16;break}return(0,u.vU)(s.O.CUSTOM_ERROR,f.error,{custom_name:"auto_click",custom_enum:"sensitive_filter_error"}),t.abrupt("return");case 16:p=f.redactedOutput,c&&o?p.filter_version=ay.V1:c&&!o&&(p.filter_version=ay.V2),i.reportButtonClick({triggerElement:p,intent_data:[].concat(i.intent_data,c?[c]:[])});case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(0),(0,u.vU)(s.O.CUSTOM_ERROR,t.t0,{custom_name:"auto_click",custom_enum:"auto_click_callback_error"});case 24:case"end":return t.stop()}},t,null,[[0,21]])})),i.autoClickCallback=function(t){return l.apply(this,arguments)},i.filter=n.auto_config||{open_graph:[],microdata:[],json_ld:[],meta:[]},i.actTracker=new oa(e,r,o,n);try{((null==(a=null==n?void 0:n.plugins)?void 0:a.AutoClick)===!1||-1!==tR(oj).indexOf("1"))&&(0,h.aN)(oC(i),"autoClickCallback","instance"),((null==(c=null==n?void 0:n.plugins)?void 0:c.Metadata)===!1||-1!==tR(oj).indexOf("2"))&&(0,h.aN)(oC(i),"autoCollectionUpdateHandler","instance")}catch(t){}return i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ok(e,t);var r,n=e.prototype;return n.initBaseFeature=function(){var t=this.getAutoConfigVersion(this.currentPixelCode),e=this.reporters.some(function(t){return r0(t)});this.initializeVersion2||("v1"===t&&!this.initializeVersion1&&e&&(this.initializeVersion1=!0,this.initAutoCollection(),this.initInteractionListener(),this.initAutoClick(t)),"v2"===t&&e&&(this.initializeVersion1||(this.initAutoCollection(),this.initInteractionListener()),this.initAutoClick(t),this.initializeVersion2=!0),this.initFormFunnel())},n.initExtraFeature=function(){!this.autoForm&&(this.initializeVersion2||this.initializeVersion1)&&this.reporters.some(function(t){return r1(t,av.AUTO_FORM)})&&this.initAutoForm(),this.initAutoVC()},n.queryDeepIntentData=function(){try{var t=function(){try{var t=(i=(o=X()).url,a=o.title,c=new URL(i).pathname.toLowerCase().includes(rW),l=a.toLowerCase().includes(rW),{isCheckoutPage:c||l,isUrlMatch:c,isTitleMatch:l}),e=t.isCheckoutPage,r=t.isUrlMatch,n=t.isTitleMatch;if(!e)return null;nt||(nt=!0,(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"auto_click",custom_enum:"checkout_page_identified",extJSON:{message:+!!r+"|"+ +!!n}}));for(var o,i,a,c,l,f,h=new Set([]),p=[],d=[],v=Array.from(document.getElementsByTagName("img")).filter(function(t){for(var e=t.className,r=0,n=Array.from(rB.INVALID_IMG_KEYWORDS);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(v);!(f=_()).done;){var m=f.value;if(p.length>rK.MAX_PRODUCTS_COUNT)break;if(!r7.has(m)){if(r7.add(m),!(m.height=0;n--){var o=t[n],i=nl(o);if(ne(o))e=o,r.inner_text=nr(o.innerText),r.destination=i||r.destination;else break}if(!e||!r.inner_text||r.inner_text.length>rK.MAX_COMPRESS_STRING_LENGTH)return{intentData:null,containerNode:null};return{intentData:r,containerNode:e}}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"reverseCheckoutPageInfo_error"}),{intentData:null,containerNode:null}}}(y),S=T.intentData,R=T.containerNode;R&&S&&(d.push(R),S.image_url=g,p.push(S))}}}}}if(function(t,e){if(!(t.length<=rK.MAX_PRODUCTS_COUNT)){for(var r=r6(e[rK.MAX_PRODUCTS_COUNT]),n=rK.MAX_PRODUCTS_COUNT,o=rK.MAX_PRODUCTS_COUNT-1;o>=0;o--)if(r5(r,r6(e[o]))>rK.INVALID_DATA_SIMILARITY_THRESHOLD)n--;else break;t.splice(n),e.splice(n)}}(p,d),0==p.length)return null;return p}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"queryCheckoutPageIntentData_error"}),null}}();t&&(this.intent_data=function(t){for(var e,r=new Set,n=[],o=nn(t);!(e=o()).done;){var i=e.value,a=i.image_url;r.has(a)||(r.add(a),n.push(i))}return n}([].concat(this.intent_data,t)),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"auto_click",custom_enum:"queryCheckoutPageIntentData",extJSON:{message:""+this.intent_data.length}}))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"autoclick",custom_enum:"queryDeepIntentData"})}},n.initInteractionListener=function(){var t=this;this.reporters.some(function(t){var e=t.options;return e&&!1!==e.autoConfigListener})&&new oo([function(e){r$(t.autoCollectionUpdateHandler,t)(e)},function(e){r$(t.autoFormUpdateHandler,t)(e)}])},n.initAutoClick=function(t){var e=this;(0,_.Oo)(m.PG.CLICK,this.autoClickCallback,{throttle:!0,interval:1e3},{observerType:m.PG.CLICK,pluginName:oM,pluginVersion:t,target:"v2"===t?window:h.zh,environment:"window",listenEventTypes:[m.PG.CLICK],mode:"append"});try{if(this.sensitiveRedactor)return;this.sensitiveRedactor=(0,l.Ie)().getPlugin("SensitiveRedactor"),Object.entries(rJ).forEach(function(t){var r=t[0],n=t[1];e.sensitiveRedactor.registerReplaceRedactor({keywords:[],regexArray:n,tag:r})}),Object.entries(ec).forEach(function(t){var r=t[0],n=t[1];e.sensitiveRedactor.registerReplaceRedactor({keywords:n,regexArray:[],tag:r})})}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"sensitive_init_error"})}},n.initAutoVC=function(){var t=this;try{if(this.reporters.find(function(e){var r=nU(e);return!!r&&(t.pi_rules=r,!0)})){this.signal_insights_config=null;return}this.reporters.find(function(e){var r=nj(e);return!!r&&(t.signal_insights_config=r,!0)})||(this.signal_insights_config=null)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"init_auto_vc"}),this.pi_rules=null,this.signal_insights_config=null}},n.initAutoCollection=function(){},n.initAutoForm=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"initAutoForm",start:performance.now()}}catch(t){}this.autoForm=new nN(this.reporters),this.autoForm.addFormUpdateHandler(this.autoFormUpdateHandler.bind(this)),this.autoCollectedFormDetail=this.autoForm.getOverallFormDetail();try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},n.initFormFunnel=function(){var t=this;if(!this.hasFormFunnelInit&&this.reporters.some(function(t){return r0(t)})){this.hasFormFunnelInit=!0;var e=(0,f.b)("76946774")?function(e){t.actTracker.report(ad.DIRECT,{page_trigger:e})}:void 0;this.formTracker=new oA(e)}},n.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"auto_config_plugin_pixelDidMount",start:performance.now()}}catch(t){}this.currentPixelCode=t.getReporterId(),this.initBaseFeature(),this.initExtraFeature();try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},n.patchEnd=function(){this.initBaseFeature(),this.initExtraFeature()},n.pixelSend=function(t,e,r){var n=this.reporters.find(function(e){return e.getReporterId()===t});this.currentPixelCode=t,this.pi_rules?or(this.context,this.pi_rules):this.signal_insights_config&&nM(this.context,this.signal_insights_config);var o=this.pi_rules||this.signal_insights_config;if(n&&o&&(nZ(n$)||nZ(n0))){((0,h.Zq)(e)||"Pageview"===e||"InitiateCheckout"===e||"PlaceAnOrder"===e)&&(i=nZ(n$));var i,a=nZ(n0);r.auto_collected_properties={vc_properties:Object.assign(Object.assign({},i&&{value:i.value,currency:i.currency,ori_value:i.ori_value,rule_key:i.rule_key}),a&&{parameter_inference:a})}}(0,h.Zq)(e)&&setTimeout(function(){nQ(n$)},500),"Pageview"===e&&(!n||r0(n))&&(r$(this.autoCollectionUpdateHandler,this)(am.PAGE_VIEW),r$(this.autoFormUpdateHandler,this)(am.PAGE_VIEW))},n.pageUrlDidChange=function(t,e){null!=e&&""!=e&&(this.autoCollectionUpdateHandler(am.URL_CHANGE),this.autoFormUpdateHandler(am.URL_CHANGE))},n.pageWillLeave=function(){this.autoCollectionUpdateHandler(am.PAGE_LEAVE),this.autoFormUpdateHandler(am.PAGE_LEAVE)},n.reportRevokeConsent=function(){this.actTracker.report(ad.CLICK,{page_trigger:am.REVOKE_CONSENT})},r=ox(oL().mark(function t(e){var r,n,o,i;return oL().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=nZ(n$)||void 0,(n=nZ(n0)||void 0)&&((r=r||{}).parameter_inference=n),("v1"==(this.initializeVersion2?"v2":"v1")||"1"===tR(oj))&&(e.intent_data=e.intent_data.filter(function(t){return t.from===aE.CHECKOUT})),o=void 0,e.intent_data.length){t.next=10;break}o=void 0,t.next=14;break;case 10:return t.next=12,this.sensitiveRedactor.processAsync(e.intent_data,"replace",rY);case 12:(i=t.sent).success&&(o=i.redactedOutput);case 14:this.actTracker.report(ad.CLICK,{page_trigger:am.CLICK,trigger_element:e.triggerElement,vc_properties:r,intent_data:o},av.AUTO_VC),this.actTracker.report(ad.CLICK,{page_trigger:am.CLICK,trigger_element:e.triggerElement,intent_data:o},av.AUTO_VC_REVERSE);case 16:case"end":return t.stop()}},t,this)})),n.reportButtonClick=function(t){return r.apply(this,arguments)},n.getAutoConfigVersion=function(t){try{var e=this.reporters.find(function(e){return e.getReporterId()===t});if(!e)return"v1";var r=e.plugins,n=r&&r.AutoConfigV2;if(tR(oj)||Object.values(this.reporters).some(function(t){var e;return oU.includes(null==(e=t.reporterInfo)?void 0:e.advertiserID)})&&n)return"v2";return n?"v2":"v1"}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"auto_click",custom_enum:"get_auto_config_version_error"}),"v1"}},e}(ry);oF=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),oD(0,H(y.D.CONTEXT)),oD(1,H(y.D.TTQ_REPORTERS)),oD(2,H(y.D.TTQ_GLOBAL_OPTIONS)),oD(3,H(y.D.REPORT_SERVICE))],oF);var oG=r(278),oH=r.n(oG),oV={EMPTY_EVENT_TYPE_NAME:{title:"Missing Event Name",desc:"The event name for one or more of your events is empty. This can affect the accuracy of reporting for your conversions.",suggestion:"Go to your source code and add a name that follows our format requirements and TikTok policies.",link:"https://ads.tiktok.com/marketing_api/docs?rid=5ipocbxyw8v&id=1701890973258754"},INVALID_CONTENT_ID:{title:"Missing value for content ID",desc:"Include a value for your 'content_id' parameter. This is required for Video Shopping Ads (VSA).",suggestion:"If you are or plan to run Video Shopping Ads (VSA), go to your source code and include a value for the 'content_id' parameter.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_CONTENT_TYPE:{title:"Invalid content type",desc:'The content type for one or more of your events is not valid. Content type must be either "product", "product_group", "destination", "hotel", "flight" or "vehicle".',suggestion:"Go to your source code and update the content type.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_CURRENCY_CODE:{title:"Invalid currency code",desc:"The currency code for one or more of your events isn't supported. This can affect the accuracy of reporting for your ROAS.",suggestion:"Go to your source code and update the 'currency' parameters with a supported currency code.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_EMAIL_FORMAT:{title:"Incorrect email format",desc:"The email format for your events does not match the format supported. This can impact Advanced Matching and your ad performance.",suggestion:"Go to your source code and update the format of your shared emails. It should follow 'xxx@xxx.com' format.",link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_EMAIL_INFORMATION:{title:"Invalid email information",desc:"The emails shared with your events were invalid.",suggestion:'Go to your source code to double check shared emails. Leave your string empty when customer information isn\'t available. Avoid spaces, "undefined", or other hardcoded values.',link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_EVENT_PARAMETER_VALUE:{title:"Invalid value parameter",desc:"The 'value' parameter for one or more of your events is invalid. This is used calculate ROAS for people and the bid for your highest value customers. Parameters must be an integer or in the decimal format (e.g. 9.99). Also, they can't contain currency symbols, special characters, letters, or commas.",suggestion:"Go to your source code and update the 'value' parameter. It can only include numbers greater than or equal to zero (e.g. 9.99). Do not include currency symbols, special characters, letters, or commas.",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},INVALID_PHONE_NUMBER_FORMAT:{title:"Incorrect phone number format",desc:"The phone number format for your events doesn't follow the E.164 format. This can affect Advanced Matching and your ad performance.",suggestion:"Go to your source code and update your shared phone numbers. It should follow the E.164 format.",link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},INVALID_PHONE_NUMBER_INFORMATION:{title:"Invalid phone number information",desc:"The phone numbers shared with your events were invalid.",suggestion:'Go to your source code to double check shared phone numbers. Leave your string empty when customer information isn\'t available. Avoid spaces, "undefined", or other hardcoded values.',link:"https://ads.tiktok.com/marketing_api/docs?id=1739585700402178"},LONG_EVENT_TYPE_NAME:{title:"Event Name Too Long",desc:"1 event type exceeds the 50 character limit.",suggestion:"Go to your source code and make these event names 50 characters or less.",link:"https://ads.tiktok.com/help/article/custom-events?lang=en"},MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT:{title:"Invalid Event Name Format",desc:"1 event name was rejected for not following TikTok format requirements.",suggestion:"Go to your source code and update these event types according to TikTok format requirements.",link:"https://ads.tiktok.com/help/article/custom-events?lang=en"},MISSING_CONTENT_ID:{title:"Missing 'content_id' paramter",desc:"The 'content_id' parameter isn't being received. This is required for Video Shopping Ads (VSA).",suggestion:"Include the 'content_id' parameter in your source code. This is required for Video Shopping Ads (VSA).",link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},MISSING_CURRENCY_PARAMETER:{title:'Missing "currency" parameter',desc:"Events shared are missing a 'currency' parameter. This impacts our ability to receive the value amount correctly, which can affect the accuracy of reporting for your return on ad spend.",suggestion:'Go to your source code and include the "currency" parameter. You can check supported currency codes. {{learn_more}}',link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},MISSING_EMAIL_AND_PHONE:{title:"Missing email and phone number",desc:"Email and phone number info isn't being received. This information is required for Complete Payment events.",suggestion:"Improve your email and phone coverage. This allows you to attribute more conversions and reach more people with your ads.",link:"https://ads.tiktok.com/marketing_api/docs?rid=5ipocbxyw8v&id=1701890972946433"},MISSING_VALUE_PARAMETER:{title:'Missing "value" parameter',desc:"Events shared are missing a 'value' parameter'. This is used calculate ROAS for people and the bid for your highest value customers. ",suggestion:'Go to your source code and include the "value" parameter.',link:"https://ads.tiktok.com/help/article/standard-events-parameters?redirected=2"},DUPLICATE_PIXEL_CODE:{title:"Duplicate Pixel ID",desc:"The pixel ID is duplicate. This could impact the pixel data accuracy.",suggestion:"Please double check and delete any unnecessary pixel code.",link:""},MISSING_PIXEL_CODE:{title:"Missing pixel ID",desc:"Some of the events sent to your TikTok account are missing a pixel ID.",suggestion:"Go to your source code and double check that the 20-character pixel ID has been added to the ttq.load() function. Don't send null values or spaces. If you edited the base code, ensure the event.js has the 'sdkid' in the Chrome network panel.",link:""},INVALID_PIXEL_CODE:{title:"Invalid pixel ID",desc:"The pixel ID is invalid. This could prevent your pixel from receiving data.",suggestion:"Please go to Events Manager and find the correct pixel ID.",link:""}},oq=/^[a-zA-Z\d]([a-zA-Z_\-\d ]{0,}[a-zA-Z_\-\d])?$/,oB=["product","product_group","destination","hotel","flight","vehicle"],oK=["email_is_hashed","phone_is_hashed","sha256_email","sha256_phone"],oW=["Purchase","CompletePayment","InitiateCheckout","AddToCart","PlaceAnOrder","ViewContent","AddToWishlist"],oY=function(t){return void 0===t},oX=function(t,e){if(i7[t]){var r=(0,l.E9)(),n=oV[t],o="[TikTok Pixel] - "+n.title;n.desc&&(o+="\nIssue: "+n.desc),n.suggestion&&(o+="\nSuggestion: "+n.suggestion),e&&Object.keys(e).forEach(function(t){o=o.split("{{"+t+"}}").join(e[t])}),o=o.trim(),n.link&&(o+=" See "+n.link+" for more information."),r&&r.console&&r.console.warn&&r.console.warn(o)}};(i1=aL||(aL={}))[i1.Live=0]="Live",i1[i1.NoRecord=1]="NoRecord";var oJ=function(t){var e=t.event,r=void 0===e?"":e;return!!(["null","undefined"].includes(r)||/^\s*$/.test(r))||!r},oz=function(t){var e=t.event;return!!oJ(t)||oq.test(void 0===e?"":e)},oZ=function(t){var e=t.event;return(void 0===e?"":e).length<=50},oQ=function(t){var e=t.event,r=t._inspection;if((0,h.Zq)(e)){var n=(void 0===r?{}:r).identity_params,o=void 0===n?{}:n;return 0===Object.keys(o).length||oK.every(function(t){return(o[t]||[]).includes(tj.Vp.EMPTY_VALUE)})}return!1},o$=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.email_is_hashed||[]).includes(tj.Vp.FILTER_EVENTS)||(r.identity_params.sha256_email||[]).includes(tj.Vp.FILTER_EVENTS))},o0=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.email_is_hashed||[]).includes(tj.Vp.UNKNOWN_INVALID)||(r.identity_params.sha256_email||[]).includes(tj.Vp.UNKNOWN_INVALID))},o1=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.phone_is_hashed||[]).includes(tj.Vp.FILTER_EVENTS)||(r.identity_params.sha256_phone||[]).includes(tj.Vp.FILTER_EVENTS))},o2=function(t){var e=t._inspection,r=void 0===e?{}:e;return!!r&&!!r.identity_params&&((r.identity_params.phone_is_hashed||[]).includes(tj.Vp.UNKNOWN_INVALID)||(r.identity_params.sha256_phone||[]).includes(tj.Vp.UNKNOWN_INVALID))},o3=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;if(oW.includes(void 0===e?"":e)){if(oY(n.contents)&&oY(n.content_id))return!0;if(!oY(n.contents))return!Array.isArray(n.contents)||n.contents.length<1||!n.contents.every(function(t){return t&&!oY(t.content_id)})}return!1},o6=function(t){var e=t.properties,r=void 0===e?{}:e,n=r.content_id,o=r.contents;return!(!oY(n)&&/^\s*$/.test(n))&&(!(!oY(o)&&Array.isArray(o))||o.every(function(t){return t&&!oY(t.content_id)&&!/^\s*$/.test(t.content_id)}))},o5=function(t){var e=t.properties.content_type;return!e||oB.includes(e)},o8=function(t){var e=t.properties.value;return!e||!!("number"==typeof e||"string"==typeof e&&(/^\d+(\.\d+)?$/.test(e)||/^\d+$/.test(e)))},o4=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;return!!((0,h.Zq)(void 0===e?"":e)&&oY(n.value)||!oY(n.currency)&&oY(n.value))},o9=function(t){var e=t.properties.currency;return!e||t5.includes(e)},o7=function(t){var e=t.event,r=t.properties,n=void 0===r?{}:r;return!!((0,h.Zq)(void 0===e?"":e)&&oY(n.currency)||!oY(n.value)&&oY(n.currency))};function it(t,e){return(it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var ie=function(t,e){return function(r,n){e(r,n,t)}},ir=function(t){function e(e,r,n){var o,i;return(o=t.call(this,{name:"DiagnosticsConsole",reporters:r,context:e})||this).isEnableDiagnosticsConsole=!1,o.isEnableDiagnosticsConsole=!!(null==(i=null==n?void 0:n.plugins)?void 0:i.DiagnosticsConsole),o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,it(e,t);var r=e.prototype;return r.isDisableDiagnosticsConsole=function(){try{if(this.isEnableDiagnosticsConsole)return!!Object.values(this.reporters).some(function(t){var e,r;return void 0!==(null==(e=null==t?void 0:t.options)?void 0:e.diagnostics)&&!(null==(r=null==t?void 0:t.options)?void 0:r.diagnostics)});return!0}catch(t){return!1}},r.warn=function(t,e){try{if(this.isDisableDiagnosticsConsole())return;oX(t,e)}catch(e){(0,u.vU)(s.O.CUSTOM_ERROR,e,{custom_name:"diagnostics_console",custom_enum:t})}},r.pixelDidMount=function(t){var e=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"console_plugin_pixelDidMount",start:performance.now()}}catch(t){}t.getParameterInfo().then(function(t){e.handlePixelInfoValidate(t)}).catch(function(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"diagnostics_console",custom_enum:"pixel"})});try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{n&&n._i||o!==ar.TRACK||e===t$||this.handleEventPayloadValidate(oH()(r||{}))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"diagnostics_console",custom_enum:"track"})}},r.handlePixelInfoValidate=function(t){if(t.status!==aL.Live)return void this.warn(i7.INVALID_PIXEL_CODE)},r.handleEventPayloadValidate=function(t){t.properties||(t.properties={}),oJ(t)&&this.warn(i7.EMPTY_EVENT_TYPE_NAME),oz(t)||this.warn(i7.MISMATCHED_EVENT_TYPE_NAME_FOR_CUSTOM_EVENT),oZ(t)||this.warn(i7.LONG_EVENT_TYPE_NAME),oQ(t)&&this.warn(i7.MISSING_EMAIL_AND_PHONE),o$(t)&&this.warn(i7.INVALID_EMAIL_INFORMATION),o0(t)&&this.warn(i7.INVALID_EMAIL_FORMAT),o1(t)&&this.warn(i7.INVALID_PHONE_NUMBER_INFORMATION),o2(t)&&this.warn(i7.INVALID_PHONE_NUMBER_FORMAT),o3(t)&&this.warn(i7.MISSING_CONTENT_ID),o6(t)||this.warn(i7.INVALID_CONTENT_ID),o5(t)||this.warn(i7.INVALID_CONTENT_TYPE),o8(t)||this.warn(i7.INVALID_EVENT_PARAMETER_VALUE),o4(t)&&this.warn(i7.MISSING_VALUE_PARAMETER),o9(t)||this.warn(i7.INVALID_CURRENCY_CODE),o7(t)&&this.warn(i7.MISSING_CURRENCY_PARAMETER,{learn_more:""})},e}(ry);ir=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),ie(0,H(y.D.CONTEXT)),ie(1,H(y.D.TTQ_REPORTERS)),ie(2,H(y.D.TTQ_GLOBAL_OPTIONS))],ir);var io="https://analytics.tiktok.com/i18n/pixel/eb.js",ii="_tt_event_builder";function ia(t,e){return(ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(i2=aP||(aP={})).EVENT_BUILD_BOOTSTRAP_ACK="event_builder_bootstrap_ack",i2.EVENT_BUILD_WRONG_CODE="event_builder_wrong_code",i2.EVENT_BUILD_BOOTSTRAP="event_builder_bootstrap";var ic=function(t,e){return function(r,n){e(r,n,t)}},iu=function(t){function e(e,r){var n;return(n=t.call(this,{name:"EventBuilder",reporters:r,context:e})||this).pluginMounted=!1,n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ia(e,t),e.prototype.pixelDidMount=function(t){var e=this;try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var r={taskName:window.ttq._pf_tn,functionName:"event_builder_plugin_pixelDidMount",start:performance.now()}}catch(t){}if(!this.pluginMounted){this.pluginMounted=!0;var n=(0,l.Ie)(),o=function(t){t.data.type===aP.EVENT_BUILD_BOOTSTRAP&&!n._event_builder_pickup_sdk_loaded&&(e.reporters.find(function(e){return e.getReporterId()===t.data.pixelCode})?(n._event_builder_pickup_sdk_loaded=!0,$(ii,t.data),tJ(io).then(function(){window.opener.window.postMessage({type:aP.EVENT_BUILD_BOOTSTRAP_ACK},"*")}).catch(function(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"event_builder_load_error",custom_enum:"load_ebjs"})})):n._event_builder_pickup_sdk_verify_flag||(setTimeout(function(){e.reporters.find(function(e){return e.getReporterId()===t.data.pixelCode})||window.opener.window.postMessage({type:aP.EVENT_BUILD_WRONG_CODE},"*")},5e3),n._event_builder_pickup_sdk_verify_flag=!0))};!n._event_builder_pickup_sdk_loaded&&(Z(ii)?tJ(io).then(function(){n._event_builder_pickup_sdk_loaded=!0}):window.opener&&(window.addEventListener("message",o),setTimeout(function(){window.removeEventListener("message",o)},8e3)));try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r))}catch(t){}}},e}(ry);function is(t,e){return(is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}iu=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),ic(0,H(y.D.CONTEXT)),ic(1,H(y.D.TTQ_REPORTERS))],iu);var il=function(t,e){return function(r,n){e(r,n,t)}},ih="tt_pixel_is_enrich_ipv6_triggered_by_enrich_am",ip=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:"EnrichIpv6",reporters:r,context:e})||this).hasReported=!1,i.shouldReportAfterEnrichAM=!1,i.reportService=n,i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,is(e,t);var r=e.prototype;return r.isPixelEnrichIpv6=function(){var t=this.reporters;return!!t&&0!==t.length&&t.every(function(t){return t&&t.plugins&&!0===t.plugins.EnrichIpv6})},r.isEnrichIpv6V2SwitchOn=function(){var t="EnrichIpv6V2";try{var e=(0,l.Ie)()._plugins||{};if(null!=e[t])return!!e[t];return!1}catch(t){return!1}},r.buildEnrichIpv6Data=function(t){var e=this.isEnrichIpv6V2SwitchOn()?"#source=2":"#source=1";return Object.assign(Object.assign({},t),{event:"EnrichIpv6",trigger_event:t.event,message_id:t.message_id+e})},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{var i;if(o!==ar.TRACK||!("Shopify"===(0,l.kW)(t)||this.isEnrichIpv6V2SwitchOn())||(0,f.Z0)(this.env)||!(r&&r.message_id)||((null==(i=this.context.getPageSign().pageIndex)?void 0:i.index)===0&&!this.hasReported&&this.isPixelEnrichIpv6()&&(this.hasReported=!0,this.reportService.report(ts,this.buildEnrichIpv6Data(r),ao.htmlHttpReport)),"true"===sessionStorage.getItem(ih)))return;"EnrichAM"===e&&(this.shouldReportAfterEnrichAM=!0),this.shouldReportAfterEnrichAM&&this.isPixelEnrichIpv6()&&(this.shouldReportAfterEnrichAM=!1,sessionStorage.setItem(ih,"true"),this.reportService.report(ts,this.buildEnrichIpv6Data(r),ao.htmlHttpReport))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"enrich_ipv6_report"})}},e}(ry);function id(t){return performance&&performance.timing?t?(0,th.u3)()-t:(0,th.u3)()-performance.timing.navigationStart:-1}function iv(t,e){return function(){for(var r=arguments.length,n=Array(r),o=0;o=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),il(0,H(y.D.CONTEXT)),il(1,H(y.D.TTQ_REPORTERS)),il(2,H(y.D.REPORT_SERVICE)),il(3,H(y.D.ENV))],ip),(i3=ax||(ax={})).FIRST_CONTENTFUL_PAINT="fcp",i3.LARGEST_CONTENTFUL_PAINT="lcp",i3.FIRST_INPUT_DELAY="fid",i3.TIME_TO_FIRST_BYTE="ttfb",i3.PAGE_LEAVE="pl",i3.LOAD_FINISH="lf",i3.TIME_WINDOW_TRACKER="twt",i3.TIME_TO_INTERACTIVE="tti",(i6=aC||(aC={})).performance="performance",i6.interaction="interaction";var ig=function(){function t(t,e,r,n){n?(this.reportService=r,this.context=t,this.reporters=e,this.reportUrl=n):(0,u.vU)(s.O.CUSTOM_ERROR,Error("empty reportUrl"),{custom_name:"empty_reportUrl",custom_enum:"page_perf_monitor"})}var e=t.prototype;return e.getResult=function(t){return{action_event:t}},e.report=function(t){var e=this;if(void 0!==t){var r=this.getReportPixelList(),n=this.assemblyReportData(ar.PAGE,t,r);n&&this.reportService.reportPreTasks.then(function(){e.reportService.report(e.reportUrl,n,ao.defaultReport,ai.P0)}),this.resetAfterReport()}},e.getReportPixelList=function(){return this.reporters},e.assemblyReportData=function(t,e,r){if(0!==r.length){var n,o=r.map(function(t){return t.getReporterId()}),i=this.context.getPageSign(),a=r[0],c=a.assemblyData(a.getReporterId(),"",{},{},ar.PAGE);return delete c.event,c.action=t,c.auto_collected_properties=e,c.context.pixel||(c.context.pixel={}),c.context.pixel.code=o[0],c.context.pixel.codes=o.join("|"),c.context.index=null==(n=i.pageIndex)?void 0:n.index,c.context.session_id=i.sessionId,c.context.pageview_id=(0,ty.gj)(this.context.getPageViewId(),a.reporterInfo.loadId,q.n2),c.message_id=c.message_id.replace(/-[^-]*$/,""),c}},t}();function iy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.rules);!(t=e()).done;){var r=t.value;try{if(!r({clickTimes:this.clickTimesTotal,scrollTimes:this.scrollTimesTotal,stayTime:this.stayTime}))return!1}catch(t){return!1}}return!0},r.isUpdated=function(){return 0!=this.clickTimes||0!=this.scrollTimes},r.resetAfterReport=function(){this.clickTimes=0,this.scrollTimes=0},e}(ig),aF=function(t){setTimeout(function(){t(ax.TIME_TO_INTERACTIVE,-1)},0)},aG=function(t){var e=function(){new Promise(function(t,e){setTimeout(function(){if(function(){try{return!!(performance&&performance.getEntriesByType)}catch(t){return!1}}()){var r=performance.getEntriesByType("navigation");if(r.length>0){var n=r[0];t(n.loadEventEnd-n.startTime)}else window.performance.timing?t(window.performance.timing.loadEventEnd-window.performance.timing.navigationStart||-1):e("Performance timing not supported")}},0)}).then(function(e){t(ax.LOAD_FINISH,e)}).catch(function(e){t(ax.LOAD_FINISH,-1)})};"complete"===window.document.readyState?e():window.addEventListener("load",e)},aH=-1,aV=function(t){addEventListener("pageshow",function(e){e.persisted&&(aH=e.timeStamp,t(e))},!0)},aq=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},aB=function(){var t=aq();return t&&t.activationStart||0},aK=function(t,e){var r=aq(),n="navigate";return aH>=0?n="back-forward-cache":r&&(document.prerendering||aB()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:n}},aW=function(t,e,r){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var n=new PerformanceObserver(function(t){Promise.resolve().then(function(){e(t.getEntries())})});return n.observe(Object.assign({type:t,buffered:!0},r||{})),n}}catch(t){}},aY=function(t,e,r,n){var o,i;return function(a){var c;e.value>=0&&(a||n)&&((i=e.value-(o||0))||void 0===o)&&(o=e.value,e.delta=i,c=e.value,e.rating=c>r[1]?"poor":c>r[0]?"needs-improvement":"good",t(e))}},aX=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},aJ=function(t){var e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||t(e)};addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0)},az=function(t){var e=!1;return function(r){e||(t(r),e=!0)}},aZ=-1,aQ=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},a$=function(t){"hidden"===document.visibilityState&&aZ>-1&&(aZ="visibilitychange"===t.type?t.timeStamp:0,a1())},a0=function(){addEventListener("visibilitychange",a$,!0),addEventListener("prerenderingchange",a$,!0)},a1=function(){removeEventListener("visibilitychange",a$,!0),removeEventListener("prerenderingchange",a$,!0)},a2=function(){return aZ<0&&(aZ=aQ(),a0(),aV(function(){setTimeout(function(){aZ=aQ(),a0()},0)})),{get firstHiddenTime(){return aZ}}},a3=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},a6=[1800,3e3],a5=function(t,e){e=e||{},a3(function(){var r,n=a2(),o=aK("FCP"),i=aW("paint",function(t){t.forEach(function(t){"first-contentful-paint"===t.name&&(i.disconnect(),t.startTimen.value&&(n.value=o,n.entries=i,r())},c=aW("layout-shift",a);c&&(r=aY(t,n,a8,e.reportAllChanges),aJ(function(){a(c.takeRecords()),r(!0)}),aV(function(){o=0,r=aY(t,n=aK("CLS",0),a8,e.reportAllChanges),aX(function(){return r()})}),setTimeout(r,0))}))},a9={passive:!0,capture:!0},a7=new Date,ct=function(t,e){ak||(ak=e,aD=t,aM=new Date,cn(removeEventListener),ce())},ce=function(){if(aD>=0&&aD1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?(e=function(){ct(o,t),n()},r=function(){n()},n=function(){removeEventListener("pointerup",e,a9),removeEventListener("pointercancel",r,a9)},addEventListener("pointerup",e,a9),addEventListener("pointercancel",r,a9)):ct(o,t)}},cn=function(t){["mousedown","keydown","touchstart","pointerdown"].forEach(function(e){return t(e,cr,a9)})},co=[100,300],ci=function(t,e){e=e||{},a3(function(){var r,n=a2(),o=aK("FID"),i=function(t){t.startTimeperformance.now())return;r.value=Math.max(i-aB(),0),r.entries=[o],n(!0),aV(function(){(n=aY(t,r=aK("TTFB",0),cs,e.reportAllChanges))(!0)})}})};function ch(t,e){return(ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cp=function(t,e){return function(r,n){e(r,n,t)}},cd=function(t){function e(e,r,n,o){var i;return(i=t.call(this,e,r,n,o)||this).cls=-1,i.init(),i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ch(e,t);var r=e.prototype;return r.init=function(){a4(this.clsHandler.bind(this),{reportAllChanges:!0}),cf(this.webVitalHandler.bind(this)),a5(this.webVitalHandler.bind(this)),cu(this.webVitalHandler.bind(this),{reportAllChanges:!0}),ci(this.webVitalHandler.bind(this)),aF(this.baseHandler.bind(this)),aG(this.baseHandler.bind(this))},r.getResult=function(t){var e=Math.floor(id()),r={ttns:e,cls:i_(this.cls),idx:this.getSessionIndex(),pep:i_(this.getPep())},n=["cls","idx","pep"];n.unshift(t);var o={metrics_type:n.join("|"),cls:r.cls,idx:r.idx,pep:r.pep};return o[t]=e,{action_event:t,perf:r,page_perf:o}},r.resetAfterReport=function(){},r.clsHandler=function(t){this.cls=t.value||-1},r.webVitalHandler=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var e,r={taskName:window.ttq._pf_tn||"page_data_web_vital_handler",functionName:window.ttq._pf_tn&&"page_data_web_vital_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_data_web_vital_handler")}}catch(t){}var n=this.getResult(t.name.toLocaleLowerCase());n.perf&&(n.perf.ttns=(null==t?void 0:t.value)?Math.floor(t.value):-1),n.page_perf&&(n.page_perf[t.name.toLocaleLowerCase()]=null==(e=null==n?void 0:n.perf)?void 0:e.ttns),this.report(n),this.resetAfterReport();try{window.ttq&&window.ttq._ppf&&(r.end=performance.now(),window.ttq._ppf.push(r),"page_data_web_vital_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},r.baseHandler=function(t,e){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf){var r,n={taskName:window.ttq._pf_tn||"page_data_base_handler",functionName:window.ttq._pf_tn&&"page_data_base_handler",start:performance.now()};window.ttq._pf_tn||(window.ttq._pf_tn="page_data_base_handler")}}catch(t){}var o=this.getResult(t);o.perf&&(o.perf.ttns=e?Math.floor(e):-1),o.page_perf&&(o.page_perf[t]=null==(r=o.perf)?void 0:r.ttns),this.report(o),this.resetAfterReport();try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n),"page_data_base_handler"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}},r.getSessionIndex=function(){var t,e=null==(t=this.context.getPageSign().pageIndex)?void 0:t.main;return null==e?-1:e},r.getCurrScrollPosition=function(){return document.documentElement.scrollTop||document.body.scrollTop},r.getViewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},r.getMaxHeight=function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)},r.getPep=function(){return(this.getCurrScrollPosition()+this.getViewportHeight())/this.getMaxHeight()},e}(ig);cd=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([cp(0,H(y.D.CONTEXT)),cp(1,H(y.D.TTQ_REPORTERS)),cp(2,H(y.D.REPORT_SERVICE))],cd);var cv=[function(t){var e=t.clickTimes,r=t.scrollTimes;return e>=1||r>=1}];function c_(t,e){return(c_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cm=function(t,e){return function(r,n){e(r,n,t)}},cg="PageData",cy=function(t){function e(e,r,n,o){var i;return(i=t.call(this,{name:cg,reporters:r,context:e})||this).monitors=[],i.isPagePerfInit=!1,i.isPageInterInit=!1,i.reportService=n,i.context=e,i.reporters=r,i.env=o,i}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,c_(e,t);var r=e.prototype;return r.init=function(t){this.isPageInterEnabled(t)&&this.initInteraction(),this.isPagePerfEnabled(t)&&this.initPerformance()},r.initInteraction=function(){this.isPageInterInit||(this.interactionMonitor=new aU(this.context,this.reporters,this.reportService,t4(ar.PAGE_INTERACTION),cv),this.monitors.push(this.interactionMonitor),this.isPageInterInit=!0)},r.initPerformance=function(){this.isPagePerfInit||(this.performanceMonitor=new cd(this.context,this.reporters,this.reportService,t4(ar.PAGE_PERFORMANCE)),this.monitors.push(this.performanceMonitor),this.isPagePerfInit=!0)},r.isPagePerfEnabled=function(t){return(0,f.Z0)(this.env)||im(t,aC.performance)},r.isPageInterEnabled=function(t){return(0,f.Z0)(this.env)||im(t,aC.interaction)},r.report=function(t){if(this.isPageInterInit){var e=this.interactionMonitor.getResultOnPageLeave(t);void 0!==e&&(this.interactionMonitor.report(e),this.interactionMonitor.resetAfterReport())}},r.pageWillLeave=function(t){this.report(ax.PAGE_LEAVE)},r.pixelDidMount=function(t){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var e={taskName:window.ttq._pf_tn,functionName:"page_plugin_pixelDidMount",start:performance.now()}}catch(t){}this.init(t);try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e))}catch(t){}},e}(ry);cy=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),cm(0,H(y.D.CONTEXT)),cm(1,H(y.D.TTQ_REPORTERS)),cm(2,H(y.D.REPORT_SERVICE)),cm(3,H(y.D.ENV))],cy);var cE={initAllModule:1,webTtqFactory:2,handleCache:3,webReporterFactory:4,initAutoForm:5,auto_config_plugin_pixelDidMount:6,callback_plugin_pixelDidMount:7,console_plugin_pixelDidMount:8,event_builder_plugin_pixelDidMount:9,shopify_plugin_pixelDidMount:10,page_plugin_pixelDidMount:11,competitor_insight_plugin_init:12,getPixelInstalledPosition:13,getPixelScriptByPixelCode:14,resetExpires:15,freezeAPI:16,handlePixelRules:17,mergeWebGlobalTtq:18,handleGlobalCache:22,getPixelDetail:19,basettq_init_context_info:20,initAutoForm_getOverallFormDetail:21,web_track_handler:23,identify_api_handler:24,updateParameterInferenceData:25},cb={identify_api_handler:{id:1,fn:[]},identify_encryption:{id:2,fn:[]},identify_after_encryption:{id:3,fn:[]},track_api_handler:{id:4,fn:[]},track_after_reporter_init:{id:5,fn:[]},track_after_report_preposition:{id:6,fn:[]},init:{id:7,fn:[cE.initAllModule,cE.webTtqFactory,cE.handleCache,cE.webReporterFactory,cE.initAutoForm,cE.freezeAPI,cE.handlePixelRules,cE.resetExpires,cE.mergeWebGlobalTtq,cE.auto_config_plugin_pixelDidMount,cE.callback_plugin_pixelDidMount,cE.console_plugin_pixelDidMount,cE.event_builder_plugin_pixelDidMount,cE.shopify_plugin_pixelDidMount,cE.page_plugin_pixelDidMount,cE.competitor_insight_plugin_init,cE.getPixelInstalledPosition,cE.getPixelScriptByPixelCode,cE.handleGlobalCache,cE.basettq_init_context_info,cE.initAutoForm_getOverallFormDetail,cE.web_track_handler,cE.identify_api_handler,cE.updateParameterInferenceData]},page_api_handler:{id:8,fn:[]},auto_advanced_matching_handler:{id:9,fn:[]},auto_config_metadata_handler:{id:10,fn:[]},auto_config_click_handler:{id:11,fn:[]},auto_config_form_handler:{id:12,fn:[]},event_builder_dispatcher:{id:13,fn:[]},page_data_web_vital_handler:{id:14,fn:[]},page_data_base_handler:{id:15,fn:[]}},cw=function(){function t(){this.queue=[],this.currentTaskMap={}}var e=t.prototype;return e.handleCache=function(t){var e=this;t.forEach(function(t){e.push(t)})},e.push=function(t){var e=t.taskName,r=t.functionName,n=t.start,o=Math.round((t.end-n)*1e3),i=e&&this.getTaskIdFromName(e);if(i){var a=this.currentTaskMap[i];if(a||(this.currentTaskMap[i]=a={id:i,d:-1}),r){var c=this.getFunctionIdFromName(r);c&&(a.f=[].concat(a.f||[],[{id:c,d:o}]))}else a.d=o,this.queue.push(a),delete this.currentTaskMap[i]}},e.print=function(){return this.queue},e.printAndClear=function(){var t=this.print();return this.clear(),t},e.clear=function(){this.queue=[]},e.getTaskIdFromName=function(t){var e;return null==(e=cb[t])?void 0:e.id},e.getFunctionIdFromName=function(t){return cE[t]},t}();function cO(t,e){return(cO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cI=function(t,e){return function(r,n){e(r,n,t)}},cT=function(t){function e(e,r){var n;return(n=t.call(this,{name:"RuntimeMeasurement",reporters:r,context:e})||this).initialize=!1,n.init(),n}return e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,cO(e,t),e.prototype.init=function(){if(!this.initialize){this.performanceDataQueue=new cw;var t=(0,l.Ie)();t&&t._ppf&&(this.performanceDataQueue.handleCache(t._ppf),t._ppf=this.performanceDataQueue),this.initialize=!0}},e}(ry);cT=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),cI(0,H(y.D.CONTEXT)),cI(1,H(y.D.TTQ_REPORTERS))],cT),(t=n||(n={}))[t.OTHER=0]="OTHER",t[t.ANDROID=1]="ANDROID",t[t.IOS=2]="IOS";var cS=[s.O.LOAD_START,s.O.LOAD_END,s.O.INIT_START,s.O.INIT_END,s.O.JSB_INIT_START,s.O.JSB_INIT_END,s.O.AD_INFO_INIT_START,s.O.AD_INFO_INIT_END,s.O.IDENTIFY_INIT_START,s.O.IDENTIFY_INIT_END,s.O.PLUGIN_INIT_START,s.O.PLUGIN_INIT_END],cR=[s.O.BEFORE_INIT,s.O.INIT_START,s.O.INIT_END,s.O.HTTP_SEND,s.O.AD_INFO_INIT_END];function cN(t){try{if(!performance||!performance.timing)return -1;if(t)return(0,th.u3)()-t;return(0,th.u3)()-performance.timing.navigationStart}catch(t){}return -1}var cA=function(t,e){void 0===e&&(e="");try{var r=[],n=performance.getEntriesByType("resource");if(n&&Array.isArray(n)){var o=[RegExp("/i18n/pixel/events\\.js\\?sdkid="+t),RegExp("/i18n/pixel/sdk\\.js\\?sdkid="+t)];n.forEach(function(t){var e=t.name,n=t.duration;o.some(function(t){return t.test(e)})&&r.push({name:e,duration:n})});var i=document&&document.currentScript,a=i&&i.src;if(a||!a&&e){var c=n.find(function(t){return t.name.indexOf(a||e)>-1});c&&r.push({name:c.name,duration:c.duration})}}return r}catch(t){return[]}};function cL(){cL=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function cP(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function cx(t,e){return(cx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(e=o||(o={}))[e.NOT_DETERMINED=0]="NOT_DETERMINED",e[e.RESTRICTED=1]="RESTRICTED",e[e.DENIED=2]="DENIED",e[e.AUTHORIZED=3]="AUTHORIZED";var cC=function(t){function e(e){(r=t.call(this,{name:"Monitor",reporters:e.reporters,context:e.context})||this).hasReportMap={},r.cachedData=[],r.contextInitEndStatus=!1,r.legacy=[];var r,o=e.pixelDetails,i=e.reportService,a=e.httpService,c=e.env,u=e.ttqOptions;return r.env=c,r.lib=o.lib,r.pixelCode=o.pixelCode,r.reportService=i,r.httpService=a,r.contextInitEndStatus=!1,r.platform=(0,f.Dt)()?n.ANDROID:(0,f.gn)()?n.IOS:n.OTHER,r.partner=u.partner||"",u.legacy&&(r.legacy=u.legacy),r.ttqOptions=u,r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,cx(e,t);var r,i,a=e.prototype;return a.reportSwitch=function(){return!this.reporters.some(function(t){var e;return(null==(e=t.options)?void 0:e.monitor)===!1})},a.recordReportLog=function(t){var e=t.pixel_code;this.hasReportMap[e]||(this.hasReportMap[e]=[]),this.hasReportMap[e].push(t)},r=cL().mark(function t(e,r){return cL().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.httpService.send(e,r);case 2:!t.sent&&this.httpService.sendByImage&&this.httpService.sendByImage(e,{log_message:eB(r)});case 4:case"end":return t.stop()}},t,this)}),i=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){cP(i,n,o,a,c,"next",t)}function c(t){cP(i,n,o,a,c,"throw",t)}a(void 0)})},a.send=function(t,e){return i.apply(this,arguments)},a.sendByReportService=function(t){var e,r=(e=t.metric_name,cR.indexOf(e)>-1);this.reportService.report(tu,t,r?ao.defaultReport:ao.htmlHttpReport,r?ai.P0:ai.P1)},a.report=function(t,e){return(void 0===e&&(e=!1),this.recordReportLog(t),e)?void this.send(tu,t):this.contextInitEndStatus?void this.sendByReportService(t):void this.cachedData.push(t)},a.contextInitEnd=function(){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var t={taskName:window.ttq._pf_tn,functionName:"monitor_plogin_context_init_end",start:performance.now()}}catch(t){}for(this.contextInitEndStatus=!0;this.cachedData.length;){var e=this.cachedData.shift();e&&null!=e.metric_name&&this.sendByReportService(e)}try{window.ttq&&window.ttq._ppf&&(t.end=performance.now(),window.ttq._ppf.push(t))}catch(t){}},a.info=function(t,e,r,n){if(void 0===e&&(e={}),void 0===r&&(r=!1),void 0===n&&(n=!1),this.reportSwitch()&&(0,l.Wf)("Monitor")||n)try{var o=this.assemblyBaseData(t,e);if(this.isRepeatLog(o))return;this.report(o,r)}catch(t){}},a.error=function(t,e,r,n){if(void 0===r&&(r={}),void 0===n&&(n=!1),this.reportSwitch()&&(0,l.Wf)("Monitor"))try{var o=this.assemblyBaseData(t,r);if(Object.assign(o.ext_json||{},{message:e.message,stack:e.stack}),this.isRepeatLog(o))return;this.report(o,n)}catch(t){}},a.isRepeatLog=function(t){var e=t.pixel_code,r=t.metric_name;if(!e||!r)return!1;var n=cS.some(function(t){return r.indexOf(t)>-1}),o=this.hasReportMap[e],i=o&&o.some(function(t){return t.metric_name===r});return n&&i},a.getReportInfo=function(t){var e=this.reporters.find(function(e){return e.getReporterId()===t});if(e)return e.reporterInfo;var r=(0,l.Ie)()._i[t];if(r)return r.info},a.assemblyBaseData=function(t,e){var r=e||{},n=r.pixelCode,i=r.extJSON,a=r.custom_name,c=r.custom_enum,s=r.app_name,h=r.latency,p=(0,l.Ie)(),d=this.env,v=this.platform,_=this.context,m=this.reporters,g=_.getAllData(),y=g.libraryInfo,E=g.pageInfo,b=g.adInfo,w=g.pageSign,O=g.enableAdTracking,I=_.getVariationId(),T=_.getVids(),S=this.legacy||[],R=b&&b.log_extra&&function(t){try{return JSON.parse(t)}catch(t){return{}}}(b.log_extra)||{},N=m.map(function(t){return t.getReporterId()}),A=n||(0,u.wE)().pixelCode||this.pixelCode||this.reporters[0]&&this.reporters[0].getReporterId()||Object.keys(p._i)[0]||"",L=this.getReportInfo(A),P=S.length?S.includes(A)?"legacy-ttq":"ttq":this.lib,x=(0,l.kW)(A)||this.partner||"non",C=O?o.AUTHORIZED:o.DENIED,k={metric_name:t,pixel_code:A,platform:v,app_name:(void 0===s?"":s)||(void 0===d?"":d),net_type:function(){try{var t=navigator&&(navigator.connection||navigator.mozConnection||navigator.webkitConnection);return t?t.effectiveType:""}catch(t){}return""}(),placement:R.placement||"non",lib:{lib_version:y&&y.version||"",ttq_name:P},in_iframe:Number((0,f.Tm)()),time_to_last_start:-1,time_to_navigation_start:-1,latency:void 0===h?0:h,page_url:E&&E.url||X().url,att_status:C,pageview_id:this.context.getPageViewId()||"",session_id:w&&w.sessionId||"",variation_id:I,vids:T,load_id:L&&L.loadId||"",ad_id:String(b.ad_id),creative_id:String(b.creative_id||R.creative_id),user_agent:(0,l.ij)(),pixel_monitor_version:"v2",custom_name:a,custom_enum:c,partner:x,ext_json:{performance:[],pixel_list:N.toString(),ad_info_from:b.ad_info_from,pixel_api_conflict_flag:(0,u.dK)()}};return i&&Object.assign(k.ext_json,i),k},a.initStart=function(t){this.info(s.O.INIT_START,t)},a.initEnd=function(t){this.info(s.O.INIT_END,t)},a.jsbInitStart=function(){this.info(s.O.JSB_INIT_START)},a.jsbInitEnd=function(){this.info(s.O.JSB_INIT_END)},a.beforeAdInfoInitStart=function(t){this.info(s.O.BEFORE_AD_INFO_INIT_START,t)},a.adInfoInitStart=function(t){this.info(s.O.AD_INFO_INIT_START,t)},a.adInfoInitEnd=function(t){this.info(s.O.AD_INFO_INIT_END,t)},a.pluginInitStart=function(t){this.info(t+s.O.PLUGIN_INIT_START)},a.pluginInitEnd=function(t){this.info(t+s.O.PLUGIN_INIT_END)},e}(ry);function ck(t,e){return(ck=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cD=function(t,e){return function(r,n){e(r,n,t)}},cM=function(t){function e(e,r,n,o,i,a){var c;return(c=t.call(this,{pixelDetails:(0,u.wE)(),context:e,reporters:r,reportService:n,httpService:o,env:i,ttqOptions:a})||this).statusTimeline={},c}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ck(e,t);var r=e.prototype;return r.getDurationTime=function(t){try{var e,r=(e=t.match(/_(start|end)$/))&&e[1];if(!r)return 0;var n=t.split("_").slice(0,-1).join("_"),o=this.statusTimeline[n];switch(!o&&(this.statusTimeline[n]={},o=this.statusTimeline[n]),r){case"start":o.start=o.start||(0,th.u3)();break;case"end":if(!o.start)return -1;return o.end=o.end||(0,th.u3)(),o.end-o.start}}catch(t){}return 0},r.assemblyBaseData=function(e,r){var n=t.prototype.assemblyBaseData.call(this,e,r),o=n.pixel_code,i=n.latency,a=this.getReportInfo(o),c=a&&a.loadStart;return Object.assign(n,{time_to_last_start:c?cN(c):-1,time_to_navigation_start:cN(),latency:i=i||this.getDurationTime(e)}),[s.O.BEFORE_INIT,s.O.IDENTIFY_INIT_END].includes(e)&&(n.ext_json=n.ext_json||{},n.ext_json.performance=cA(o,e===s.O.IDENTIFY_INIT_END?"identify":"")),n},e}(cC);function cj(t){return void 0===t&&(t=!0),new Promise(function(e){try{var r="undefined"!=typeof window?window:void 0;if(r&&"function"==typeof r.requestIdleCallback)return void(t?r.requestIdleCallback(function(){return e(!0)},{timeout:1e3}):r.requestIdleCallback(function(t){try{var r="function"==typeof t.timeRemaining?t.timeRemaining():0;e(r>3)}catch(t){e(!0)}}));if("function"==typeof requestAnimationFrame){var n=performance.now();requestAnimationFrame(function(){var r=performance.now()-n;e(r<10||t)})}else setTimeout(function(){return e(!0)},0)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"delayidle_error",custom_enum:"catch_error"}),e(!0)}})}cM=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),cD(0,H(y.D.CONTEXT)),cD(1,H(y.D.TTQ_REPORTERS)),cD(2,H(y.D.REPORT_SERVICE)),cD(3,H(y.D.HTTP_SERVICE)),cD(4,H(y.D.ENV)),cD(5,H(y.D.TTQ_GLOBAL_OPTIONS))],cM);var cU=["script","style","noscript","pre","code","svg","canvas","math","kbd","samp"];function cF(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function cH(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function cV(){var t;return t=cG().mark(function t(e){var r,n,o,i,a,c,l,f,h,p,d,v,_,m,g,y,E,b,w,O,I,T,S,R,N,A,L,P,x,C,k,D,M,j,U,F,G,H,V,q,B,K,W,Y;return cG().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:var X,J;if(F=function(){var t,e=performance.now(),r=0;try{for(;rO){L++;continue}if(M(o))return x=!0,U+=performance.now()-e,{done:!1,stopped:!0,timeExceeded:!1,processed:r+1};if(performance.now()-e>=y)return U+=performance.now()-e,{done:!1,stopped:!1,timeExceeded:!0,processed:r+1}}}return U+=performance.now()-e,{done:!1,stopped:!1,timeExceeded:!1,processed:m}}catch(t){return U+=performance.now()-e,(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"run_one_batch_error"}),{done:!0,stopped:!1,timeExceeded:!1,processed:r}}},void 0===e&&(e={}),n=performance.now(),a=void 0===(i=(o=e).root)?document:i,c=o.patterns,f=void 0===(l=o.maxTotalHits)?60:l,p=void 0===(h=o.maxHitsPerPattern)?50:h,v=void 0===(d=o.ignoreTags)?cU:d,m=void 0===(_=o.chunkSize)?500:_,y=void 0===(g=o.maxChunkMs)?8:g,b=void 0===(E=o.minTextLength)?5:E,O=void 0===(w=o.maxTextLength)?100:w,I=Array.from(new Set([].concat(v,cU))),0!==(T=(Array.isArray(X=null==c?void 0:c.filter(function(t){return!!t}))&&X.length?X:[]).map(function(t){return{name:t.name,regex:t.regex,preCheck:"function"==typeof t.preCheck?t.preCheck:function(){return!0},normalize:"function"==typeof t.normalize?t.normalize:function(t){return t},hits:[],set:new Set,stoppedEarly:!1,resultDomDetail:[]}})).length){t.next=9;break}return J=n,S={textNodesVisited:0,skippedByTag:0,skippedByPrecheck:0,skippedByLength:0,totalFound:0,stoppedEarly:!1,collect_ms:0,processing_ms:0,total_ms:+(performance.now()-J).toFixed(2),chunks:0},t.abrupt("return",{patterns:[],totals:S});case 9:R=0,N=0,A=0,L=0,P=0,x=!1,C=0,k={skippedByLength:{v:0},skippedByPrecheck:{v:0},totalFound:{v:0}},D=function(t,e,r){var n,o=new Set(e.map(function(t){return t.toLowerCase()})),i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,{acceptNode:function(t){if(t.nodeType===Node.ELEMENT_NODE){var e;return(e=t.tagName.toLowerCase(),o.has(e)||0)?(null==r||r(),NodeFilter.FILTER_REJECT):NodeFilter.FILTER_ACCEPT}return t.nodeType===Node.TEXT_NODE?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});return(n={next:function(){for(var t;t=i.nextNode();)if(t.nodeType===Node.TEXT_NODE){var e=t;if(!e.nodeValue||!e.nodeValue.trim())continue;return{value:e,done:!1}}return{value:void 0,done:!0}}})[Symbol.iterator]=function(){return this},n}(null!=(r=a.documentElement)?r:a,I,function(){N++}),M=function(t){var e=t.compiled,r=t.minTextLength,n=t.maxHitsPerPattern,o=t.maxTotalHits,i=t.counters;return function(t){try{if(i.totalFound.v>=o)return!0;var a=null!=(c=t.nodeValue)?c:"";if(!a)return!1;if(a.length=48&&n<=57&&e++}return e}(a):0,E=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return cF(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cF(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e);!(_=E()).done;){var b=_.value;if(!b.stoppedEarly){if("email"===b.name){if(!m){i.skippedByPrecheck.v++;continue}}else if(b.name.includes("phone")&&!(g&&y>=7)){i.skippedByPrecheck.v++;continue}if(!b.preCheck(a)){i.skippedByPrecheck.v++;continue}var w=void 0;try{w=RegExp(b.regex,"ig").exec(a)}catch(t){return!0}if(w){var O={text:a,index:w.index,node:t},I=b.normalize(w[0],O);if(I&&(i.totalFound.v++,b.hits.push(I),b.set.add(I),t.parentElement&&b.resultDomDetail.push({id:null!=(f=null==(l=t.parentElement)?void 0:l.id)?f:"",className:null!=(p=null==(h=t.parentElement)?void 0:h.className)?p:"",tagName:null!=(v=null==(d=t.parentElement)?void 0:d.tagName)?v:""}),b.hits.length>=n&&(b.stoppedEarly=!0),i.totalFound.v>=o))return!0}}}return!1}catch(t){return(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"process_text_node_error"}),!1}}}({compiled:T,minTextLength:b,maxHitsPerPattern:p,maxTotalHits:f,counters:k}),j=performance.now(),U=0;case 22:if(C++,H=(G=F()).done,V=G.stopped,q=G.timeExceeded,B=G.processed,!(H||V)){t.next=27;break}return t.abrupt("break",48);case 27:if(!(B1||1===r&&"+"!==e[0])return null;var n=e.replace(cq,"").length;if(n<7||n>15)return null;var o=(e.match(/\(/g)||[]).length;if(o!==(e.match(/\)/g)||[]).length||o>0&&!/\(\d{1,4}\)/.test(e))return null;var i=e;if(i.startsWith("+")){var a=i.match(/^\+\d{1,3}/);if(!a)return null;i=i.slice(a[0].length)}var c=i.match(/^(?:\(\d{1,4}\)|\d{1,4})(?:[ -])?/);return(c&&(i=i.slice(c[0].length)),/^\d{5,12}$/.test(i))?e:null}},cW={name:"email",regex:"[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}",visibilityMode:"all",preCheck:function(t){return t.includes("@")}};function cY(){cY=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function cX(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}function cJ(t,e){return(cJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var cz=function(t,e){return function(r,n){e(r,n,t)}},cZ=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"TextTreeWalkerPlugin",reporters:r,context:e})||this).context=e,o.reporters=r,o.lcpTriggered=!1,o.hasDoneFirstScan=!1,o.isScanning=!1,o.eventEmitter=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,cJ(e,t);var r,n,o=e.prototype;return o.pageLcp=function(){var t=this;this.lcpTriggered||(this.lcpTriggered=!0,setTimeout(function(){try{t.getPIIFromTextNode(),t.hasDoneFirstScan=!0}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"text_tree_walker_plugin",custom_enum:"get_pii_from_textnode"})}},2e3))},r=cY().mark(function t(){var e,r,n,o,i,a,c,u,s,f,p,d;return cY().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isScanning){t.next=2;break}return t.abrupt("return");case 2:if(this.activeReporter||(this.activeReporter=this.reporters.find(function(t){var e,r,n,o;return(null==(r=null==(e=t.plugins)?void 0:e.AutoAdvancedMatching)?void 0:r.auto_email)||(null==(o=null==(n=t.plugins)?void 0:n.AutoAdvancedMatching)?void 0:o.auto_phone_number)})),!(!h.$9||!function(){try{return!!((0,l.Ie)()._plugins||{}).EnableTextWalker}catch(t){return!1}}()||!this.activeReporter)){t.next=5;break}return t.abrupt("return");case 5:if(u=(c=null!=(r=null==(e=this.activeReporter.plugins)?void 0:e.AutoAdvancedMatching)?r:{}).auto_email,s=c.auto_phone_number,0!==[u&&cW,s&&cK].filter(Boolean).length){t.next=9;break}return t.abrupt("return");case 9:return this.isScanning=!0,t.next=12,function(t){return cV.apply(this,arguments)}({root:document.body,ignoreTags:["a"],patterns:[u&&cW,!1],minTextLength:5,maxTextLength:1e3});case 12:if(p=null!=(o=null==(n=(f=t.sent.patterns).find(function(t){return"email"===t.name}))?void 0:n.values)?o:[],d=null!=(a=null==(i=f.find(function(t){return"phone_intl"===t.name}))?void 0:i.values)?a:[],this.isScanning=!1,0!==p.length||0!==d.length){t.next=19;break}return t.abrupt("return");case 19:this.sendToAutoAdvancedMatchingPlugin(p[0],d[0]);case 20:case"end":return t.stop()}},t,this)}),n=function(){var t=this,e=arguments;return new Promise(function(n,o){var i=r.apply(t,e);function a(t){cX(i,n,o,a,c,"next",t)}function c(t){cX(i,n,o,a,c,"throw",t)}a(void 0)})},o.getPIIFromTextNode=function(){return n.apply(this,arguments)},o.sendToAutoAdvancedMatchingPlugin=function(t,e){var r={source:q.eM.TEXT,timestamp:(0,th.u3)(),email:t,phone:e,detectedAt:"page_load"};this.eventEmitter.emit("PII_DETECTED",r)},o.pixelSend=function(t,e){if(this.hasDoneFirstScan&&"Pageview"===e){var r,n=null==(r=this.activeReporter)?void 0:r.getReporterId();n&&n===t&&this.getPIIFromTextNode()}},e}(ry);cZ=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),cz(0,H(y.D.CONTEXT)),cz(1,H(y.D.TTQ_REPORTERS)),cz(2,H(y.D.EVENT_EMITTER))],cZ);var cQ={FORM_EMAIL:"A1",FORM_PHONE:"A2",DL_EMAIL_PLAIN:"B1",DL_EMAIL_HASHED:"B2",DL_PHONE_PLAIN:"B3",DL_PHONE_HASHED:"B4"};function c$(t){var e=t.plugins,r=t.options;return(null==r?void 0:r.autoConfig)!==!1&&!!(null!=e&&e.AutoConfig)}function c0(t){var e;return(null==(e=(0,l.Ie)())?void 0:e._pal)===1&&t.some(c$)}var c1=new Set;function c2(t){try{if(c1.has(t))return;c1.add(t),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"pal",custom_enum:t},!1,!0)}catch(t){}}var c3=["phone","telephone","cellphone"],c6=["email"],c5=["ecommerce.purchase.actionField.id","order_id"],c8="dataLayer",c4={totalEnqueued:0,totalProcessedBatches:0,totalProcessedItems:0,totalTraverseErrors:0,totalFound:0,totalRevisits:0,totalDropped:0,lastBatchDurationMs:0,lastItemDurationMs:0,maxBatchDurationMs:0,maxItemDurationMs:0},c9=function(t,e,r){return void 0===r&&(r=function(){return!0}),{kind:t,matchKey:function(t){return e.some(function(e){return t.toLowerCase().includes(e.toLowerCase())})},acceptValue:r}},c7=function(t){return void 0===t&&(t=c6),c9("email",t)},ut=function(t){return void 0===t&&(t=c3),c9("phone",t)},ue=function(t,e){void 0===t&&(t="dataLayer");var r=e.cdpRef,n=e.hookCdpPush,o=e.enqueueCurrentCdp,i=e.err,a=function(t){try{n(t),o()}catch(t){i("intercept_cdp_hook_error",t)}};try{var c=window[t],u=Array.isArray(c)?c:void 0;if(u)return r=u,a(r),r;return r=[],Object.defineProperty(window,t,{configurable:!0,enumerable:!0,get:function(){return r},set:function(t){Array.isArray(t)?(r=t,a(r)):i("intercept_cdp_set_non_array_error")}}),r}catch(t){return i("intercept_cdp_set_property_error",t),r}},ur=function(t,e){(0,u.vU)(s.O.CUSTOM_ERROR,e||Error(t),{custom_name:"cdp_visiter_plugin",custom_enum:t})},un=function(t){try{return JSON.stringify(t)}catch(t){return"[unserializable]"}},uo=function(t){return!!t&&("object"==typeof t||"function"==typeof t)},ui=function(t,e){void 0===e&&(e=120);try{if(null==t)return String(t);if("string"==typeof t){var r=t.trim();return r.length>e?r.slice(0,e)+"…":r}if("number"==typeof t||"boolean"==typeof t)return String(t);var n=un(t);return n.length>e?n.slice(0,e)+"…":n}catch(t){return"[unserializable]"}};function ua(t){return null!=t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"0")&&Object.prototype.hasOwnProperty.call(t,"1")&&!Object.prototype.hasOwnProperty.call(t,"event")}function uc(t){try{var e=null==t?void 0:t["0"],r=null==t?void 0:t["1"],n=null==t?void 0:t["2"];if("event"===e&&"string"==typeof r)return Object.assign(Object.assign({event:r},n&&"object"==typeof n?n:{}),{_source:"_normalized_args"});if("string"==typeof r)return Object.assign(Object.assign({event:r},n&&"object"==typeof n?n:{}),{_source:"_normalized_args_loose"})}catch(t){}return t}function uu(t){try{if(Array.isArray(t))return t.map(function(t){return ua(t)?uc(t):t});if(ua(t))return uc(t);return t}catch(e){return t}}function us(t){try{if(t&&"object"==typeof t&&"string"==typeof t.event)return t.event}catch(t){}}function ul(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return uf(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uf(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function uf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0;)try{var t=r.pop();t&&t()}catch(t){ur("unhook_function_error",t)}},isHooked:function(t){return!!t&&"object"==typeof t&&e.has(t)}}},up=function(t){var e=null,r=!1,n=uh(t),o=function(t){void 0===t&&(t=c8),e=ue(t,{cdpRef:e,hookCdpPush:n.hookDataLayerPush,enqueueCurrentCdp:function(){n.enqueueCurrentDataLayer(e)},err:ur})};return{init:function(){if(!r){r=!0;try{o(c8)}catch(t){ur("intercept_dataLayer",t)}}},rescan:function(){return n.enqueueCurrentDataLayer(e)},destroy:function(){n.unhook(),e=null,r=!1},getDataLayerRef:function(){return e}}};function ud(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.extractors);!(c=u()).done;){var s=c.value;try{if(!s.matchKey(e)||s.acceptValue&&!s.acceptValue(r,n))continue;i(s.kind,e,r,n,o,a)}catch(t){ur("runExtractorsCatch"+s.kind+"Error",t)}}},c=function(e){var r=e.toLowerCase();return t.skipKeys.map(function(t){return t.toLowerCase()}).some(function(t){return r.includes(t)})};return{traverse:function e(n,i){var l=i.depth,f=i.path,h=void 0===f?"":f,p=i.source,d=i.budgetLimit,v=i.eventName;if(!(l>t.maxDepth)){var _=0;if(!(0>=d)&&(_++,!(!uo(n)||uo(n)&&n instanceof Element))){var m=r.get(n)||0;if(m>=3)return void o.totalRevisits++;if(r.set(n,m+1),!Array.isArray(n)&&"object"==typeof n&&t.maxObjectKeyLength&&t.maxObjectKeyLength>0&&Object.keys(n).length>t.maxObjectKeyLength)return;var g="string"==typeof(null==n?void 0:n.event)?n.event:void 0,y=v||g;if(Array.isArray(n)){try{for(var E=0;E=d);E++){if(uo(n[E])){var b=n[E],w=r.get(b)||0;if(w>=3){o.totalRevisits++;continue}r.set(b,w+1)}e(n[E],{depth:l+1,path:h+"["+E+"]",source:p,budgetLimit:d,eventName:y})}}catch(t){o.totalTraverseErrors++,ur("traverse_array_error",t)}return}try{for(var O=0,I=Object.entries(n);O=d)break;uo(R)&&e(R,{depth:l+1,path:N,source:p,budgetLimit:d,eventName:y})}}}catch(t){o.totalTraverseErrors++,ur("traverse_object_entries_error",t),(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"traverse_object_entries_error_stats",extJSON:{message:JSON.stringify(Object.assign({path:h||""},o))}})}}}},getDedup:function(){return Array.from(n)},getStats:function(){return Object.assign(Object.assign({},o),{totalRevisits:o.totalRevisits})},resetVisited:function(t){void 0===t&&(t=!1),t?r=new WeakMap:o.totalRevisits>100&&(r=new WeakMap,o.totalRevisits=0)}}};function u_(){u_=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function um(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){r(t);return}c.done?e(u):Promise.resolve(u).then(n,o)}var ug=function(t,e,r){var n,o,i=[],a=Object.assign({},c4),c=!1,l=!1,f=0,h=0,p=function(){return"function"==typeof(null==performance?void 0:performance.now)?performance.now():(0,th.u3)()},d=(n=u_().mark(function n(){var o,v,_,m,g,y,E,b,w,O,I;return u_().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!c){n.next=2;break}return n.abrupt("return");case 2:return c=!0,n.prev=3,n.next=6,cj(!1);case 6:if(n.sent){n.next=13;break}return o=Math.min(1e3,20*(1<=100)){n.next=27;break}return i.length=0,h=0,a.totalDropped=(a.totalDropped||0)+i.length,(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"max_batch_count"}),e.resetVisited(!0),c=!1,n.abrupt("return");case 27:y=h%10==0,e.resetVisited(y);case 29:if(!i.length){n.next=43;break}if(!(p()-v>=t.maxMsPerBatch)){n.next=32;break}return n.abrupt("break",43);case 32:if(!(g>=_)){n.next=34;break}return n.abrupt("break",43);case 34:E=i.shift(),m++,b=p();try{e.traverse(E.node,{depth:0,path:E.path||"dataLayer.push",source:E.source||"push",budgetLimit:_,eventName:E.eventName})}catch(t){a.totalTraverseErrors+=1,ur("traverse_catch",t)}w=p()-b,a.lastItemDurationMs=w,w>a.maxItemDurationMs&&(a.maxItemDurationMs=w),n.next=29;break;case 43:O=p()-v,a.lastBatchDurationMs=O,O>a.maxBatchDurationMs&&(a.maxBatchDurationMs=O),a.totalProcessedBatches+=1,a.totalProcessedItems+=m,e.getStats&&(I=e.getStats())&&I.totalRevisits&&(a.totalRevisits=(a.totalRevisits||0)+I.totalRevisits),r(a),n.next=56;break;case 52:n.prev=52,n.t0=n.catch(3),ur("schedule_catch",n.t0),l=!0;case 56:return n.prev=56,c=!1,i.length&&!l&&d(),l=!1,n.finish(56);case 61:case"end":return n.stop()}},n,null,[[3,52,56,61]])}),o=function(){var t=this,e=arguments;return new Promise(function(r,o){var i=n.apply(t,e);function a(t){um(i,r,o,a,c,"next",t)}function c(t){um(i,r,o,a,c,"throw",t)}a(void 0)})},function(){return o.apply(this,arguments)});return{enqueue:function(e,r){"number"==typeof t.maxQueueSize&&t.maxQueueSize>0&&i.length>=t.maxQueueSize&&i.shift(),i.push(Object.assign({node:e},r)),a.totalEnqueued+=1,d()},getQueueSize:function(){return i.length},getStats:function(){return Object.freeze(Object.assign({},a))},updateStats:function(t){r(a=Object.assign(Object.assign({},a),t))}}},uy={maxDepth:3,maxNodesPerTraverse:1e3,maxObjectKeyLength:20,skipKeys:["html","snapshot","content","description","fullstate","raw","payload","products","catalog","recommendations","dom","tree","schema","source","trace","stack","contact","setting","fake","visitor","allow","md5"],extractors:[],onFound:function(){},maxNodePerBatch:100,maxMsPerBatch:8,maxQueueSize:1e3},uE=function(t){if(!t)return{init:function(){},rescan:function(){},getQueueSize:function(){return 0},getStats:function(){return Object.freeze(Object.assign({},c4))},getFoundKeys:function(){return[]},destroy:function(){},config:{}};var e,r,n=Object.assign(Object.assign({},uy),{extractors:[c7(),ut()]}),o=Object.assign(Object.assign(Object.assign({},n),t),{extractors:(null==t?void 0:t.extractors)||n.extractors,maxQueueSize:null!=(e=null==t?void 0:t.maxQueueSize)?e:n.maxQueueSize,maxObjectKeyLength:null!=(r=null==t?void 0:t.maxObjectKeyLength)?r:n.maxObjectKeyLength}),i=Object.assign({},c4),a=uv(o,function(t){var e,r;try{null==(r=null==(e=o.extractors.find(function(e){return e.kind===t.kind}))?void 0:e.onHit)||r.call(e,t)}catch(t){ur("extractor_onHit_error",t)}try{o.onFound(t)}catch(t){ur("on_found_error",t)}}),c=ug(o,a,function(t){i=Object.assign(Object.assign({},i),t)}),u=up(c.enqueue);return{init:u.init,rescan:u.rescan,getQueueSize:c.getQueueSize,getStats:c.getStats,getFoundKeys:function(){return a.getDedup()},destroy:function(){try{try{var t=Object.getOwnPropertyDescriptor(window,"dataLayer");if(t&&(t.get||t.set)&&t.configurable){delete window.dataLayer;var e=u.getDataLayerRef();void 0!==e&&(window.dataLayer=e)}}catch(t){}u.destroy()}catch(t){ur("destroy_error",t)}},config:o}};function ub(t,e){return(ub=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var uw=function(t,e){return function(r,n){e(r,n,t)}},uO=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"CdpVisiterPlugin",reporters:r,context:e})||this).context=e,o.reporters=r,o.lcpTriggered=!1,o.scanner=null,o.eventEmitter=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,ub(e,t);var r=e.prototype;return r.pageLcp=function(){if(!this.lcpTriggered){this.lcpTriggered=!0;var t=this.reporters.some(function(t){var e;return(e=t.plugins)&&e.EnableDatalayerVisiter||!1});(h.$9&&h.hj||0)&&t&&this.tryProxyDataLayer()}},r.tryProxyDataLayer=function(){var t=this,e=function(){var t,e;return(null!=(e=null==(t=null==window?void 0:window.dataLayer)?void 0:t.length)?e:0)>0};if(e())return void this.extractDataLayerIfReady();setTimeout(function(){e()&&t.extractDataLayerIfReady()},3e3)},r.extractDataLayerIfReady=function(){try{this.extractDataLayer()}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"cdp_visiter_plugin",custom_enum:"extract_dataLayer_catch"})}},r.extractDataLayer=function(){var t=this,e=this.decidePiiStrategy();if(e){var r=e.mode,n=e.wantEmail,o=e.wantPhone,i="aam"===r&&this.decideTidStrategy(),a=uE({maxNodePerBatch:600,maxMsPerBatch:8,extractors:[n&&c7(["email"]),o&&ut(["phone","telephone"]),i&&c9("tid",["transaction_id"]),i&&c9("tid",["id"],function(t,e){return!!c5.some(function(t){return null==e?void 0:e.includes(t)})})].filter(function(t){return!!t}),onFound:function(e){if((null==e?void 0:e.kind)==="tid"&&e.value)return void t.handleTidHit(e);var n=function(t){var e=null==t?void 0:t.value;if("string"!=typeof e||!e)return null;var r=64===e.length;return"email"===t.kind?e.includes("@")?cQ.DL_EMAIL_PLAIN:r?cQ.DL_EMAIL_HASHED:null:"phone"===t.kind?r?cQ.DL_PHONE_HASHED:cQ.DL_PHONE_PLAIN:null}(e);n&&t.handlePiiHit(e,n,r)}});this.scanner=a,this.scanner.init()}},r.decidePiiStrategy=function(){var t=this.reporters.some(function(t){var e,r;return!!(null==(r=null==(e=t.plugins)?void 0:e.AutoAdvancedMatching)?void 0:r.auto_email)}),e=this.reporters.some(function(t){var e,r;return!!(null==(r=null==(e=t.plugins)?void 0:e.AutoAdvancedMatching)?void 0:r.auto_phone_number)}),r=t||e,n=c0(this.reporters);if(!r&&!n)return null;var o=!r;return{mode:o?"probe":"aam",wantEmail:o||t,wantPhone:o||e}},r.decideTidStrategy=function(){return this.reporters.some(function(t){var e;return null==(e=t.plugins)?void 0:e.AutoConfigV2})},r.handlePiiHit=function(t,e,r){"aam"===r&&this.sendToAutoAdvancedMatchingPlugin(Object.assign(Object.assign({},"email"===t.kind&&{email:t.value}),"phone"===t.kind&&{phone:t.value})),"probe"===r&&c2(e)},r.handleTidHit=function(t){(0,u.um)(s.O.CUSTOM_INFO,{custom_name:"cdp_visiter_plugin",custom_enum:"ga_data_detected",extJSON:{message:JSON.stringify({path:t.path,event:t.event||"",value:String(t.value)})}},!1,!0),this.context.setTransactionId(String(t.value))},r.sendToAutoAdvancedMatchingPlugin=function(t){var e=void 0===t?{}:t,r=e.email,n=e.phone;try{var o={source:q.eM.DATA_LAYER,timestamp:(0,th.u3)(),email:r,phone:n,detectedAt:"data_layer"};this.eventEmitter.emit("PII_DETECTED",o)}catch(t){}},e}(ry);function uI(t,e){return(uI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}uO=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),uw(0,H(y.D.CONTEXT)),uw(1,H(y.D.TTQ_REPORTERS)),uw(2,H(y.D.EVENT_EMITTER))],uO);var uT=function(t,e){return function(r,n){e(r,n,t)}},uS=function(t){function e(e,r){var n;return(n=t.call(this,{name:"LPV",reporters:r,context:e})||this).pluginHasReportedESRecord={},n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,uI(e,t);var r=e.prototype;return r.isLPVSwitchOn=function(t){return t.plugins&&!0===t.plugins.EnableLPV},r.buildLPVData=function(){return{trigger_source:"pixel_self"}},r.buildSecondJumpESData=function(){return{lpv_trigger_type:"second_jump",trigger_source:"pixel_self"}},r.buildDuration10sESData=function(){return{lpv_trigger_type:"duration_10s",trigger_source:"pixel_self"}},r.markHasReportedES=function(t){this.pluginHasReportedESRecord[t.getReporterId()]=!0,t.setCookieBasedSession(Object.assign(Object.assign({},t.getCookieBasedSession()),{hasReportedES:1}))},r.startEngagedSessionTimer=function(t,e){var r=this;void 0===e&&(e={});var n=null,o=0,i=!0,a=null==t?void 0:t.getCookieBasedSession().hasReportedES,c=function(){r.checkHasReportedES(e,t.getReporterId())||(t.track(t1,r.buildDuration10sESData(),{},ar.TRACK,ao.defaultReport),r.markHasReportedES(t))},u=function(e){if(!(a=null==t?void 0:t.getCookieBasedSession().hasReportedES)){n=setTimeout(c,1e3*e);var r=(0,th.u3)();document.addEventListener("visibilitychange",function t(){"hidden"!==document.visibilityState||a||(n&&clearTimeout(n),i=!1,n=null,o+=Math.floor(((0,th.u3)()-r)/1e3),document.removeEventListener("visibilitychange",t))})}};u(10),document.addEventListener("visibilitychange",function(){if(a=null==t?void 0:t.getCookieBasedSession().hasReportedES,"visible"===document.visibilityState&&!a&&!i){var e=10-o;e<=0?c():u(e)}}),window.addEventListener("beforeunload",function(){n&&clearTimeout(n)})},r.pixelSend=function(t,e,r,n,o){void 0===n&&(n={});try{if(o!==ar.TRACK||(null==(i=r._inspection)?void 0:i.trigger_source)==="pixel_self")return;var i,a,c=this.reporters.find(function(e){return e.getReporterId()===t});if(!c||!this.isLPVSwitchOn(c))return;var l=(null==(a=null==n?void 0:n.pixelSession)?void 0:a.isSessionStart)||!1,f=this.context.getPageInfo().referrer,h=this.context.getPageSign().etldPlusOne,p=this.context.getPageSign().pageIndex;l&&c.track("LandingPageView",this.buildLPVData(),{},ar.TRACK,ao.defaultReport),this.checkHasReportedES(n,t)||(!l&&(f&&h&&f.includes(h)||p&&p.index>0)?(c.track(t1,this.buildSecondJumpESData(),{},ar.TRACK,ao.defaultReport),this.markHasReportedES(c)):this.startEngagedSessionTimer(c,n))}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"lpv_report"})}},r.checkHasReportedES=function(t,e){var r;return!!(this.pluginHasReportedESRecord[e]||(null==(r=null==t?void 0:t.pixelSession)?void 0:r.hasReportedES))},e}(ry);uS=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),uT(0,H(y.D.CONTEXT)),uT(1,H(y.D.TTQ_REPORTERS))],uS);var uR=[].concat([{identifier:y.D.MONITOR_PLUGIN,to:cM,name:"Monitor",required:!0},{identifier:y.D.AUTO_CONFIG_PLUGIN,to:oF,name:"AutoConfig",required:!1},{identifier:y.D.DIAGNOSTICS_CONSOLE_PLUGIN,to:ir,name:"DiagnosticsConsole",required:!1},{identifier:y.D.RUNTIME_MEASUREMENT_PLUGIN,to:cT,name:"RuntimeMeasurement",required:!1}],[{identifier:y.D.CALLBACK_PLUGIN,to:rw,name:"Callback"},{identifier:y.D.IDENTIFY_PLUGIN,to:rH,name:"Identify",required:!0},{identifier:y.D.EVENT_BUILDER_PLUGIN,to:iu,name:"EventBuilder"},{identifier:y.D.ENRICH_IPV6_PLUGIN,to:ip,name:"EnrichIpv6"},{identifier:y.D.PAGEDATA_PLUGIN,to:cy,name:"PageData"},{identifier:y.D.LPV_PLUGIN,to:uS,name:"LPV"},{identifier:y.D.TEXT_TREE_WALKER_PLUGIN,to:cZ,name:"TextTreeWalker",required:!1},{identifier:y.D.CDP_VISITER_PLUGIN,to:uO,name:"CdpVisiter",required:!1}]),uN=["zip","cep"],uA=/[\s\u3000\-_*.,;:!?"'`~@#$%^&+=|/\\()\[\]{}<>,。!?:;、“”‘’()【】《》…·]+/g,uL=/[^a-z0-9]+/,uP=/^[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+(:?\.[\w!#\$%&\'\*\+\/\=\?\^`\{\|\}~\-]+)*@(?:[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\-]*[a-z0-9])?$/,ux=function(t){return"function"==typeof Element?t instanceof Element:t&&"object"==typeof t&&t.nodeType===Node.ELEMENT_NODE&&"string"==typeof t.nodeName},uC=function(t,e){var r=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||null;return!!(null!==r&&r.call(t,e.join(",")))||t instanceof HTMLButtonElement&&!!e.includes("button[type='"+t.type+"']")},uk=function(t){if(!t||t===document.body)return!1;if(t.getBoundingClientRect&&"function"==typeof t.getBoundingClientRect){var e=t.getBoundingClientRect().height||t.offsetHeight||11;return e>10&&e<600}return!0},uD=function(t){return t.trim().toLowerCase()},uM=function(t,e){return!!t&&!!e&&t.indexOf(e)>=0},uj=function(t){return"string"==typeof t&&uP.test(t)},uU=function(t){if(!t)return null;for(var e=t.parentElement,r=t,n="";r;)(r=r.previousElementSibling)&&(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement)&&(n=r.value,r=null);if(!n||"string"!=typeof n||!e||0>(e.innerText||e.textContent||"").indexOf("@"))return null;var o=n+"@"+t.value;return uj(o)?o:null},uF=function(t,e){var r=t.id,n=t.name,o=t.placeholder,i=void 0===o?"":o,a=t.value,c=void 0===a?"":a;return e.filter(function(t){return t.length>2?uM(n,t)||uM(r,t)||uM(i,t)||uM(c,t):n===t||r===t||i===t||c===t})},uG=function(t){return t.toLowerCase().replace(uA,"")},uH=["postcode","zipcode","postalcode","c\xf3digo postal","codigo postal","code postal","postleitzahl","邮编","邮政编码","郵便番号","우편번호"].map(function(t){return uG(t)}),uV=function(t){if(!t)return null;var e,r=t.replace(/([a-z0-9])([A-Z])/g,"$1 $2").toLowerCase(),n=r.split(uL),o=uN.find(function(t){return n.includes(t)});if(o)return o;var i=uG(r);return null!=(e=uH.find(function(t){return i.includes(t)}))?e:null},uq=function(t){var e=new Set,r=t.labels;if(r)for(var n=0;n=this.rateMS||this.lastElement!==t)&&(e=!0),this.lastElement=t,this.lastTime=(0,th.u3)(),e},r.getWrappingButton=function(t){if(!t||!uk(t)||(this.config.exclude_selectors||[]).length>0&&uC(t,this.config.exclude_selectors||[]))return null;if(uC(t,Object.keys(this.config.selectors||{})))return t;var e=t.parentNode;return e&&ux(e)?this.getWrappingButton(e):null},r.getFormByButton=function(t){if(t instanceof HTMLInputElement)return t.form;for(var e=t;"FORM"!==e.nodeName.toUpperCase();){var r=e.parentElement;if(!r)return null;e=r}return e},r.getUserDataByForm=function(t){var e={},r=t||document;this.zipCodeEnabled||(this.zipCodeEnabled=this.shouldCollectZipCode());for(var n=r.querySelectorAll("input,textarea,select"),o=0;o0?null:r:this.zipCodeEnabled?uY(t):null},r.getEmailOrPhone=function(t){var e=t.value;if(uj(e))return{auto_email:uD(e)};var r=uU(t);if(r)return{auto_email:uD(r)};if("US"===(0,l.so)()&&e.replace(/\D/g,"").length<10)return null;var n={id:uD(t.id).replace(/[_-]/g,""),name:uD(t.name).replace(/[_-]/g,""),placeholder:uD(t.placeholder?t.placeholder:"").replace(/[_-]/g,"")},o=!(this.config.phone_selectors.length>0)||"tel"===t.getAttribute("type")||"tel"===t.getAttribute("inputmode")||uF(n,this.config.phone_selectors).length>0,i=!this.phoneRegex||this.phoneRegex.test(e);return o&&i?{auto_phone_number:e}:null},r.getTriggerType=function(t,e){var r=this;try{var n=[];if(Object.keys(this.config.selectors).forEach(function(e){uC(t,[e])&&n.push(r.config.selectors[e])}),0===n.length)return"";return n.join(",")+"-"+ +!!e}catch(t){return""}},e}(ry);uZ=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),uJ(0,H(y.D.CONTEXT)),uJ(1,H(y.D.TTQ_REPORTERS)),uJ(2,H(y.D.TTQ_GLOBAL_OPTIONS)),uJ(3,H(y.D.EVENT_EMITTER))],uZ);var uQ=function(t,e){t.isBound(y.D.AUTO_ADVANCED_MATCHING_PLUGIN)||t.bind(y.D.AUTO_ADVANCED_MATCHING_PLUGIN).to(uZ).inSingletonScope(),sY(y.D.AUTO_ADVANCED_MATCHING_PLUGIN,"AutoAdvancedMatching")&&e.usePlugin(t.get(y.D.AUTO_ADVANCED_MATCHING_PLUGIN))};function u$(t,e){return(u$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var u0=function(t){function e(e){var r;return(r=t.call(this,e)||this).observers=new Set([]),r}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,u$(e,t);var r=e.prototype;return r.addObserver=function(t){this.observers.has(t)||this.observers.add(t)},r.removeObserver=function(t){this.observers.delete(t)},r.notifyObservers=function(t,e){this.observers.forEach(function(r){return r.call(e,t)})},e}(rm),u1="HistoryObserver";(i||(i={})).DYNAMIC_WEB_PAGEVIEW="dynamic_web_pageview";var u2=["GoogleTagManagerClient","GoogleTagManagerServer"];function u3(t,e){var r=history[t];return function(){var t=Array.prototype.slice.call(arguments);r.apply(history,t),e()}}function u6(t){var e=t.options,r=t.plugins;return e&&!1!==e.historyObserver&&r&&r[u1]}function u5(t,e){var r=X().url,n=t.context.getPageInfo().url;if(r!==n){var o,a=t.context.setPageInfo(r,n);a&&a.pageIndex&&tA(a.pageIndex),(0,_.Kn)(m.Cr.URL_CHANGE,r,n),t.reporters.filter((o=i.DYNAMIC_WEB_PAGEVIEW,function(t){var e=t.plugins;return!!(u6(t)&&e[u1]&&e[u1][o])})).forEach(function(t){setTimeout(function(){t.page(e)})})}}function u8(t,e){return(u8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var u4=function(t,e){return function(r,n){e(r,n,t)}},u9=function(t){function e(e,r){var n;return(n=t.call(this,{name:u1,reporters:r,context:e})||this).enableListenSPAHistoryChange=!1,n.listenSPAHistoryChange=(0,h.IH)(function(){var t=function(){n.enableListenSPAHistoryChange&&n.notifyObservers({tf:i9.HISTORY_CHANGE})},e=(0,h.bJ)(t);window.addEventListener("popstate",e),history.pushState=u3("pushState",t),history.replaceState=u3("replaceState",t)}),n.dynamicWebPageviewHandler=u5.bind(null,function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n)),n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,u8(e,t);var r=e.prototype;return r.initListener=function(t){this.enableListenSPAHistoryChange=function(t){if(!t)return!1;var e=(0,l.kW)(),r=t.getReporterPartner();return!(e&&!u2.includes(e)||r&&t.isPartnerReporter()&&!u2.includes(r))}(t),this.enableListenSPAHistoryChange&&this.listenSPAHistoryChange()},r.pixelSend=function(t,e){var r=this.reporters.find(function(e){return e.getReporterId()===t});r&&u6(r)&&(e&&"string"==typeof e&&"pageview"===e.toLowerCase()&&this.addObserver(this.dynamicWebPageviewHandler),this.initListener(r))},r.pageUrlWillChange=function(){if(this.enableListenSPAHistoryChange)return void this.notifyObservers({tf:i9.HISTORY_CHANGE});this.notifyObservers({tf:i9.URL_CHANGE,event_experiment:"pageview"})},e}(u0);function u7(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),u4(0,H(y.D.CONTEXT)),u4(1,H(y.D.TTQ_REPORTERS))],u9);var st=function(){function t(t){var e=this;this.configMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.listeners=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map,this.listenedElementsSet=h.$9?new WeakSet:new Set,this.handleEvent=function(t){try{e.sendEvent(t)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:e.getObserverType()+"Observer",custom_enum:"handleEvent_error"})}},this.eventEmitter=t,this.configMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map}var e=t.prototype;return e.setupListeners=function(t){var e=this;try{t.forEach(function(t){"window"===t.environment&&t.listenEventTypes.forEach(function(r){Array.isArray(t.target)?document.querySelectorAll(t.target.join(", ")).forEach(function(t){e.bindListener(t,r)}):e.bindListener(t.target,r)})})}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:this.getObserverType()+"Observer",custom_enum:"setupListeners_error"})}},e.teardownListeners=function(t){var e=this;if(t){var r=this.configMap.get(t);r&&r.length&&r.forEach(function(r){var n,o=r.target;if(Array.isArray(o)){var i=o.join(", ");n=document.querySelectorAll(i)}else n=[o];n.forEach(function(t){for(var n,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return u7(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u7(t,e)}}(t))){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.listenEventTypes);!(n=o()).done;){var i=n.value,a=e.listeners.get(i)||e.handleEvent;t.removeEventListener(i,a),e.listenedElementsSet.delete(t),e.listeners.delete(i)}}),e.configMap.delete(t)})}},e.updateConfig=function(t){if(t){var e;if(this.validateConfig(t)){var r="append"===t.mode&&null!=(e=this.configMap.get(t.pluginName))?e:[];"append"!==t.mode&&this.teardownListeners(t.pluginName),r.push(t),this.configMap.set(t.pluginName,r),this.setupListeners([t])}}},e.sendEvent=function(t){this.eventEmitter.emit(t.type,t)},e.validateConfig=function(t){return!!t&&!!t.observerType&&!!t.listenEventTypes&&!!t.pluginName},e.getConfigMap=function(){return this.configMap},t}();function se(t,e){return(se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var sr=function(t){function e(e){return t.call(this,e)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,se(e,t);var r=e.prototype;return r.bindListener=function(t,e){!this.listenedElementsSet.has(t)&&(this.listenedElementsSet.add(t),t instanceof Element&&h.P6.some(function(e){return t.matches(e)})||t.addEventListener(e,this.handleEvent,{capture:!0,passive:!0}))},r.getObserverType=function(){return"click"},e}(st);function sn(t,e){return(sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var so=function(t){function e(e){return t.call(this,e)||this}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,sn(e,t);var r=e.prototype;return r.bindListener=function(t,e){var r=this;if(!this.listenedElementsSet.has(t)){this.listenedElementsSet.add(t);var n=(0,ty.P2)(function(t){return r.handleEvent(t)},200,{trailing:!0});t.addEventListener(e,n,{passive:!0,capture:!0}),this.listeners.set(e,n)}},r.getObserverType=function(){return"scroll"},e}(st);function si(t,e){return(si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var sa=function(t,e){return function(r,n){e(r,n,t)}},sc=function(t){function e(e,r,n){var o;return(o=t.call(this,{name:"INTERACTION_OBSERVER",reporters:r,context:e})||this).observersMap=new window[window.TiktokAnalyticsObject || "ttq"]._ttq_map([]),o.eventEmitter=n,o.eventEmitter.on(m._V.UPDATE_CONFIG,o.updateObserverConfig.bind(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o)),{}),o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,si(e,t);var r=e.prototype;return r.registerObserver=function(t){var e;switch(t){case"click":e=new sr(this.eventEmitter);break;case"scroll":e=new so(this.eventEmitter);break;default:return}this.observersMap.set(t,e)},r.unregisterObserver=function(t){var e=this.observersMap.get(t);e&&(e.getConfigMap().forEach(function(t,r){e.teardownListeners(r)}),this.observersMap.delete(t))},r.destroyAll=function(){var t=this;this.observersMap.forEach(function(e,r){t.unregisterObserver(r)}),this.observersMap.clear()},r.updateObserverConfig=function(t){var e=t.observerType,r=this.observersMap.get(e);r||(this.registerObserver(e),r=this.observersMap.get(e)),r&&r.updateConfig(t)},e}(u0);sc=function(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}([G(),sa(0,H(y.D.CONTEXT)),sa(1,H(y.D.TTQ_REPORTERS)),sa(2,H(y.D.EVENT_EMITTER))],sc);var su=[{identifier:y.D.HISTORY_OBSERVER,to:u9,name:"HistoryObserver"},{identifier:y.D.INTERACTION_OBSERVER,to:sc,name:"InteractionObserver"}];function ss(){ss=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function sl(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return sf(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sf(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&sd(t[r]);)r--;for(;n=n.end?(r.push(n),n=i):i.end>n.end&&(n={start:n.start,end:i.end,value:i.value})}return r.push(n),r}var sy=function(){function t(){}var e=t.prototype;return e.decompose=function(t){for(var e=[],r=0,n=0,o=t.length,i="text",a="",c="";n"===u&&(r=this.parseTag(a,e,r),i="text",a="")),n++}return r=this.processTextBuffer(c,e,r),a&&(r=this.parseTag(a,e,r)),e},e.processTextBuffer=function(t,e,r){var n=t.trim();if(!n)return r;if(n.length<=30){var o={type:"text",value:n,position:r++};return e.push(o),r}return sp(n,30).forEach(function(t){var n={type:"text",value:t,position:r++};e.push(n)}),r},e.parseTag=function(t,e,r){var n=r;if(!t)return n;if(t.startsWith("30?sp(t,30).forEach(function(t){n.push({type:"array-item",key:a,value:t,position:o++})}):n.push({type:"array-item",key:a,value:t,position:o++})}):null!==t&&"object"==typeof t&&Object.keys(t).forEach(function(i){var a=e?e+"."+i:i,c=t[i];if(null!==c&&"object"==typeof c){var u=r.decompose(c,a);n.push.apply(n,u)}else"string"===sm(c)&&c.length>30?sp(c,30).forEach(function(t){n.push({type:"object-property",key:a,value:t,name:i,position:o++})}):n.push({type:"object-property",key:a,value:c,name:i,position:o++})}),n},t}();function sb(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(r=o()).done;){var i=r.value;switch(i.type){case"tagStart":n+="<"+i.name;break;case"attribute":n+=" "+i.key+'="'+i.redactedValue+'"';break;case"tagStartClose":n+=">";break;case"text":n+=i.redactedValue;break;case"tagEnd":n+=""}}return n},t}(),sO=function(){function t(){}return t.prototype.recompose=function(t,e){var r;return r=Array.isArray(e)?[]:{},0===t.length||t.forEach(function(t){var e=t.key,n=t.redactedValue,o=t.type;if(e){var i=e.split("."),a=r;i.forEach(function(t,e){var r=e===i.length-1,c=i[e+1],u="array-item"===o||!r&&void 0!==c&&!isNaN(Number(c));void 0===a[t]&&(a[t]=u?[]:{}),r?a[t]&&"string"==typeof a[t]?a[t]+=n:a[t]=n:a=a[t]})}}),r},t}();function sI(){sI=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var sT=function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,c)}u((n=n.apply(t,e||[])).next())})},sS=function(){function t(t){this.matcher=t}var e=t.prototype;return e.redactSync=function(t,e){var r=this,n=sg(this.matcher.match(t));return e(function(t,e,r){if(!e||0===e.length)return t;for(var n,o="",i=0,a=sl(e);!(n=a()).done;){var c=n.value;c.start>i&&(o+=t.slice(i,c.start)),o+=r(c),i=c.end}return ii&&(o+=t.slice(i,u.start)),n.next=10,r(u);case 10:s=n.sent,o+=s,i=u.end;case 13:n.next=5;break;case 15:return i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function sN(t,e){return(sN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var sA=function(t){function e(e,r){var n;return void 0===r&&(r=au.DEFAULT),(n=t.call(this,e)||this).tag=r,n}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,sN(e,t);var r=e.prototype;return r.processMatchSync=function(){return s_(this.tag)},r.processMatchAsync=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=sR().mark(function t(){return sR().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s_(this.tag));case 1:case"end":return t.stop()}},t,this)}),new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,c)}u((n=n.apply(t,e||[])).next())})},e}(sS);function sL(){sL=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i,a,c,u,s=Object._ttq_create((e&&e.prototype instanceof h?e:h).prototype);return n(s,"_invoke",{value:(i=t,a=r,c=new O(o||[]),u="suspendedStart",function(t,e){if("executing"===u)throw Error("Generator is already running");if("completed"===u){if("throw"===t)throw e;return T()}for(c.method=t,c.arg=e;;){var r=c.delegate;if(r){var n=function t(e,r){var n=r.method,o=e.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,c);if(n){if(n===f)continue;return n}}if("next"===c.method)c.sent=c._sent=c.arg;else if("throw"===c.method){if("suspendedStart"===u)throw u="completed",c.arg;c.dispatchException(c.arg)}else"return"===c.method&&c.abrupt("return",c.arg);u="executing";var o=l(i,a,c);if("normal"===o.type){if(u=c.done?"completed":"suspendedYield",o.arg===f)continue;return{value:o.arg,done:c.done}}"throw"===o.type&&(u="completed",c.method="throw",c.arg=o.arg)}})}),s}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};u(v,i,function(){return this});var _=Object.getPrototypeOf,m=_&&_(_(I([])));m&&m!==e&&r.call(m,i)&&(v=m);var g=d.prototype=h.prototype=Object._ttq_create(v);function y(t){["next","throw","return"].forEach(function(e){u(t,e,function(t){return this._invoke(e,t)})})}function E(t,e){var o;n(this,"_invoke",{value:function(n,i){function a(){return new e(function(o,a){!function n(o,i,a,c){var u=l(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,a,c)},function(t){n("throw",t,a,c)}):e.resolve(f).then(function(t){s.value=t,a(s)},function(t){return n("throw",t,a,c)})}c(u.arg)}(n,i,o,a)})}return o=o?o.then(a,a):a()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function I(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function sP(t,e){return(sP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var sx=function(t){function e(e,r,n){var o;return(o=t.call(this,e)||this).hashSync=r,o.hashAsync=n,o}e.prototype=Object._ttq_create(t.prototype),e.prototype.constructor=e,sP(e,t);var r=e.prototype;return r.processMatchSync=function(t){return this.hashSync(t)},r.processMatchAsync=function(t){var e,r,n,o;return e=this,r=void 0,n=void 0,o=sL().mark(function e(){return sL().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.hashAsync?this.hashAsync(t):function(t){return sh(this,void 0,void 0,ss().mark(function e(){var r,n;return ss().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=new TextEncoder().encode(t),e.next=4,crypto.subtle.digest("SHA-256",r);case 4:return n=Array.from(new Uint8Array(e.sent)).map(function(t){return t.toString(16).padStart(2,"0")}).join(""),e.abrupt("return",n);case 8:case"end":return e.stop()}},e)}))}(t));case 1:case"end":return e.stop()}},e,this)}),new(n||(n=Promise))(function(t,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(e){var r;e.done?t(e.value):((r=e.value)instanceof n?r:new n(function(t){t(r)})).then(a,c)}u((o=o.apply(e,r||[])).next())})},e}(sS);function sC(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(this.patterns);!(r=o()).done;){var i=r.value;try{i.lastIndex=0}catch(t){}for(var a=void 0,c=0;null!==(a=i.exec(t))&&c++=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}sD.MAX_LOOP_COUNT=5;var sj=function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,c)}u((n=n.apply(t,e||[])).next())})},sU=function(){function t(){this.pipelines={replace:[],encrypt:[]},this.htmlDecomposer=new sy,this.elementDecomposer=new sE,this.htmlRecomposer=new sw,this.elementRecomposer=new sO}var e=t.prototype;return e.registerReplaceRedactor=function(t){if("function"!=typeof t.redactSync||"function"!=typeof t.redactAsync)throw Error("Redactor must implement redactSync and redactAsync");this.pipelines.replace.push(t)},e.registerEncryptRedactor=function(t){if("function"!=typeof t.redactSync||"function"!=typeof t.redactAsync)throw Error("Redactor must implement redactSync and redactAsync");this.pipelines.encrypt.push(t)},e.createReplaceRedactor=function(t){var e;return new sA(new sD({keywords:null==t?void 0:t.keywords,regexArray:null==t?void 0:t.regexArray}),null!=(e=null==t?void 0:t.tag)?e:au.DEFAULT)},e.createEncryptionRedactor=function(t,e,r){return new sx(new sD({keywords:null==t?void 0:t.keywords,regexArray:null==t?void 0:t.regexArray}),e,r)},e.dispatchSync=function(t,e,r){var n=this,o=t[e];if(!o)return r;var i=function(o){return void 0===o&&(o=r),n.dispatchSync(t,e+1,o)};try{return o.redactSync(r,i)}catch(t){return i(r)}},e.dispatchAsync=function(t,e,r){return sj(this,void 0,void 0,sM().mark(function n(){var o,i,a=this;return sM().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o=t[e]){n.next=3;break}return n.abrupt("return",r);case 3:return i=function(n){return void 0===n&&(n=r),sj(a,void 0,void 0,sM().mark(function r(){return sM().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this.dispatchAsync(t,e+1,n));case 1:case"end":return r.stop()}},r,this)}))},n.prev=4,n.next=7,o.redactAsync(r,i);case 7:case 14:return n.abrupt("return",n.sent);case 10:return n.prev=10,n.t0=n.catch(4),n.next=14,i(r);case 15:case"end":return n.stop()}},n,null,[[4,10]])}))},e.selectEngines=function(t){return"string"==typeof t?{decomposer:this.htmlDecomposer,recomposer:this.htmlRecomposer}:{decomposer:this.elementDecomposer,recomposer:this.elementRecomposer}},e.processSync=function(t,e,r){var n=this;try{if("string"!=typeof t&&"object"!=typeof t||"object"==typeof t&&null===t)return{originalInput:t,success:!1,error:Error("Input must be string or object")};var o=this.selectEngines(t),i=o.decomposer,a=o.recomposer,c=i.decompose(t),u="encrypt"==e?this.pipelines.encrypt:this.pipelines.replace,s=c.map(function(t){if(r&&t.name&&r.has(t.name))return Object.assign(Object.assign({},t),{redactedValue:null!=(e=t.value)?e:""});if(null==(o=t.type)?void 0:o.includes("tag"))return Object.assign(Object.assign({},t),{redactedValue:""});var e,o,i,a=null!=(i=t.value)?i:"",c=n.dispatchSync(u,0,a);return Object.assign(Object.assign({},t),{redactedValue:c})}),l=a.recompose(s,t);return{originalInput:t,success:!0,redactedOutput:l}}catch(e){return{originalInput:t,success:!1,error:e}}},e.processAsync=function(t,e,r){return sj(this,void 0,void 0,sM().mark(function n(){var o,i,a,c,u,s,l,f=this;return sM().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,("string"==typeof t||"object"==typeof t)&&("object"!=typeof t||null!==t)){n.next=3;break}return n.abrupt("return",{originalInput:t,success:!1,error:Error("Input must be string or object")});case 3:return i=(o=this.selectEngines(t)).decomposer,a=o.recomposer,c=i.decompose(t),u="encrypt"==e?this.pipelines.encrypt:this.pipelines.replace,n.next=8,Promise.all(c.map(function(t){return sj(f,void 0,void 0,sM().mark(function e(){var n,o,i,a,c;return sM().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r&&t.name&&r.has(t.name))){e.next=2;break}return e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:null!=(n=t.value)?n:""}));case 2:if(!(null==(o=t.type)?void 0:o.includes("tag"))){e.next=4;break}return e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:""}));case 4:return a=null!=(i=t.value)?i:"",e.next=7,this.dispatchAsync(u,0,a);case 7:return c=e.sent,e.abrupt("return",Object.assign(Object.assign({},t),{redactedValue:c}));case 9:case"end":return e.stop()}},e,this)}))}));case 8:return s=n.sent,l=a.recompose(s,t),n.abrupt("return",{originalInput:t,success:!0,redactedOutput:l});case 13:return n.prev=13,n.t0=n.catch(0),n.abrupt("return",{originalInput:t,success:!1,error:n.t0});case 16:case"end":return n.stop()}},n,this,[[0,13]])}))},t}(),sF=function(){function t(){this.name="SensitiveRedactor",this.engine=new sU}var e=t.prototype;return e.registerReplaceRedactor=function(t){var e=this.engine.createReplaceRedactor(t);return this.engine.registerReplaceRedactor(e),this},e.registerEncryptRedactor=function(t,e,r){var n=this.engine.createEncryptionRedactor(t,e,r);return this.engine.registerEncryptRedactor(n),this},e.processSync=function(t,e,r){return void 0===e&&(e="replace"),this.engine.processSync(t,e,r)},e.processAsync=function(t,e,r){return void 0===e&&(e="replace"),this.engine.processAsync(t,e,r)},t}(),sG=(0,l.Ie)(),sH=(null==sG?void 0:sG._container)||new F,sV=(null==sG?void 0:sG._container)?at.REBIND:at.BIND;(0,f.RA)();var sq=sH[sV](y.D.ENV),sB=sH[sV](E.M.SignalType);sH[sV](E.M.ID),sH[sV](E.M.Type),sH[sV](E.M.Options),sH[sV](E.M.Plugins),sH[sV](E.M.Rules),sH[sV](E.M.PixelRules),sH[sV](E.M.Info);var sK=sH[sV](E.M.WebLibraryInfo),sW=sH[sV](y.D.TTQ_GLOBAL_OPTIONS);try{if(!sH.get(y.D.TTQ_GLOBAL_OPTIONS))throw Error("")}catch(t){sW.toConstantValue({})}function sY(t,e){return!!(sG&&sG._mounted&&!sG.getPlugin(e)&&sH.isBound(t))}var sX=function(t,e){var r={name:"pixel.js",version:q.Jn,options:void 0},n=(0,f.b4)();sK.toConstantValue(r),sq.toConstantValue(e),sB.toConstantValue(n)},sJ=function(t){(null==t?void 0:t._container)||(sH.bind(y.D.TTQ).to(eL).inSingletonScope(),sH.bind(y.D.CONTEXT).to(eU).inSingletonScope(),sH.bind(y.D.REPORTER).to(eb),sH.bind(y.D.TTQ_REPORTERS).toConstantValue([]),sH.bind(y.D.REPORT_SERVICE).to(e2).inSingletonScope(),sH.bind(y.D.AD_SERVICE).to(e5).inSingletonScope(),sH.bind(y.D.APP_SERVICE).to(e9).inSingletonScope(),sH.bind(y.D.BRIDGE_SERVICE).to(ro).inSingletonScope(),sH.bind(y.D.HTTP_SERVICE).to(rc).inSingletonScope(),sH.bind(E.M.IsOnsitePage).toConstantValue({value:!1}),sH.bind(y.D.COOKIE_SERVICE).to(rl).inSingletonScope(),sH.bind(y.D.CONSENT_SERVICE).to(rp).inSingletonScope(),sH.bind(y.D.EVENT_EMITTER).to(t8).inSingletonScope(),sH.bind(y.D.INTER_ID_SERVICE).to(r_).inSingletonScope(),sH.bind(y.D.SENSITIVE_REDACTOR).to(sF).inSingletonScope()),t&&!t._container&&(t._container=sH)},sz=function(){uR.forEach(function(t){var e=t.to,r=t.name,n=void 0===r?"":r,o=t.required,i=t.identifier;(void 0!==o&&o||(0,l.Wf)(n))&&!sH.isBound(i)&&sH.bind(i).to(e).inSingletonScope(),sY(i,n)&&sG.usePlugin(sH.get(i))})},sZ=function(){su.forEach(function(t){var e=t.to,r=t.name,n=t.identifier;(0,l.Wf)(void 0===r?"":r)&&!sH.isBound(n)&&sH.bind(n).to(e).inSingletonScope()})},sQ=function(t,e,r){try{if(window.ttq&&!window.ttq._ppf&&(window.ttq._ppf=[]),window.ttq&&window.ttq._ppf)var n={taskName:window.ttq._pf_tn,functionName:"initAllModule",start:performance.now()}}catch(t){}sX(t,r),P(e,t),sZ(),sJ(t),sz(),uQ(e,t);try{window.ttq&&window.ttq._ppf&&(n.end=performance.now(),window.ttq._ppf.push(n))}catch(t){}},s$=function(){try{var t=sH.get(y.D.MONITOR_PLUGIN);if(t)return t;return null}catch(t){return null}},s0=function(){try{sH.get(y.D.EVENT_EMITTER)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"emitterFactory"})}},s1=function(){try{sH.get(y.D.SENSITIVE_REDACTOR)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"sensitiveRedactorFactory"})}},s2=function(){try{sH.isBound(y.D.INTERACTION_OBSERVER)&&sH.get(y.D.INTERACTION_OBSERVER)}catch(t){(0,u.vU)(s.O.CUSTOM_ERROR,t,{custom_name:"interactionObserverFactory"})}},s3=function(){s0(),s2(),s1()},s6=function(t){var e=this.constructor;return this.then(function(r){return e.resolve(t()).then(function(){return r})},function(r){return e.resolve(t()).then(function(){return e.reject(r)})})},s5=function(t){return new this(function(e,r){if(!(t&&void 0!==t.length))return r(TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var n=Array.prototype.slice.call(t);if(0===n.length)return e([]);for(var o=n.length,i=0;i0||(null==(r=t.pixel_rules)?void 0:r.length)>0)&&c&&new c(t.getReporterId(),t.rules,t.pixel_rules)});try{window.ttq&&window.ttq._ppf&&(v.end=performance.now(),window.ttq._ppf.push(v))}catch(t){}try{window.ttq&&window.ttq._ppf&&(e.end=performance.now(),window.ttq._ppf.push(e),"init"===window.ttq._pf_tn&&(window.ttq._pf_tn=""))}catch(t){}}}()}catch(t){(0,u.vU)(s.O.INIT_ERROR,t)}}()}();